In Vanya and Exams problem ,minimum of min(avg * n - sum, r - ai) will be added to the answer . But why do we subtract ( r — Gradei ) ? Anyone else please help me .
Thanks in advance
# | User | Rating |
---|---|---|
1 | jiangly | 3845 |
2 | tourist | 3798 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3589 |
6 | Ormlis | 3532 |
7 | Benq | 3468 |
8 | Radewoosh | 3463 |
9 | ecnerwala | 3451 |
10 | Um_nik | 3450 |
# | User | Contrib. |
---|---|---|
1 | cry | 165 |
2 | Qingyu | 160 |
3 | -is-this-fft- | 159 |
4 | atcoder_official | 157 |
5 | Dominater069 | 156 |
6 | adamant | 154 |
7 | djm03178 | 151 |
8 | luogu_official | 149 |
9 | awoo | 147 |
10 | TheScrasse | 145 |
Vanya and Exams
In Vanya and Exams problem ,minimum of min(avg * n - sum, r - ai) will be added to the answer . But why do we subtract ( r — Gradei ) ? Anyone else please help me .
Thanks in advance
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en2 |
![]() |
Ehsan_sShuvo | 2018-03-16 17:56:30 | 4 | Tiny change: 'act ( r — Grade<sub>i</su' -> 'act ( r — a<sub>i</su' | |
en1 |
![]() |
Ehsan_sShuvo | 2018-03-16 17:53:54 | 292 | Initial revision (published) |
Name |
---|