here is the problem : https://codeforces.com/problemset/problem/702/A
my submission : https://codeforces.com/problemset/submission/702/93103318
I already use c++17,c++14,c++11 and it seems the problem is in my code, I don't know why
№ | Пользователь | Рейтинг |
---|---|---|
1 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 162 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
here is the problem : https://codeforces.com/problemset/problem/702/A
my submission : https://codeforces.com/problemset/submission/702/93103318
I already use c++17,c++14,c++11 and it seems the problem is in my code, I don't know why
Название |
---|
Change your template. You can use my template
Why are u defining arr[n] before even taking n as the input. Define long long int arr[n] after the line : cin >> n;
Here's ur modified code : https://codeforces.com/contest/702/submission/93105403
omg lol I'm sorry I'm so dumb sorry for that, thank you I didn't see that