Task: | Wheel of fortune |
Sender: | Rasse |
Submission time: | 2024-09-16 17:20:43 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.01 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
#12 | WRONG ANSWER | 0.00 s | details |
#13 | WRONG ANSWER | 0.00 s | details |
#14 | WRONG ANSWER | 0.00 s | details |
#15 | WRONG ANSWER | 0.00 s | details |
#16 | WRONG ANSWER | 0.00 s | details |
#17 | WRONG ANSWER | 0.00 s | details |
#18 | WRONG ANSWER | 0.00 s | details |
#19 | WRONG ANSWER | 0.00 s | details |
#20 | WRONG ANSWER | 0.00 s | details |
#21 | WRONG ANSWER | 0.00 s | details |
#22 | WRONG ANSWER | 0.01 s | details |
#23 | WRONG ANSWER | 0.00 s | details |
#24 | WRONG ANSWER | 0.00 s | details |
#25 | WRONG ANSWER | 0.00 s | details |
#26 | WRONG ANSWER | 0.00 s | details |
#27 | WRONG ANSWER | 0.00 s | details |
#28 | WRONG ANSWER | 0.00 s | details |
#29 | WRONG ANSWER | 0.00 s | details |
#30 | WRONG ANSWER | 0.00 s | details |
#31 | WRONG ANSWER | 0.00 s | details |
#32 | WRONG ANSWER | 0.00 s | details |
#33 | WRONG ANSWER | 0.00 s | details |
#34 | WRONG ANSWER | 0.00 s | details |
#35 | WRONG ANSWER | 0.00 s | details |
#36 | WRONG ANSWER | 0.00 s | details |
#37 | WRONG ANSWER | 0.01 s | details |
#38 | WRONG ANSWER | 0.00 s | details |
#39 | WRONG ANSWER | 0.00 s | details |
#40 | WRONG ANSWER | 0.00 s | details |
#41 | WRONG ANSWER | 0.00 s | details |
#42 | WRONG ANSWER | 0.00 s | details |
#43 | WRONG ANSWER | 0.00 s | details |
#44 | WRONG ANSWER | 0.00 s | details |
#45 | WRONG ANSWER | 0.00 s | details |
#46 | WRONG ANSWER | 0.00 s | details |
#47 | WRONG ANSWER | 0.00 s | details |
#48 | WRONG ANSWER | 0.00 s | details |
#49 | WRONG ANSWER | 0.00 s | details |
#50 | WRONG ANSWER | 0.00 s | details |
#51 | WRONG ANSWER | 0.00 s | details |
#52 | WRONG ANSWER | 0.00 s | details |
#53 | WRONG ANSWER | 0.00 s | details |
#54 | WRONG ANSWER | 0.00 s | details |
#55 | WRONG ANSWER | 0.00 s | details |
#56 | WRONG ANSWER | 0.00 s | details |
#57 | WRONG ANSWER | 0.00 s | details |
#58 | WRONG ANSWER | 0.00 s | details |
#59 | WRONG ANSWER | 0.00 s | details |
#60 | WRONG ANSWER | 0.00 s | details |
#61 | WRONG ANSWER | 0.00 s | details |
#62 | WRONG ANSWER | 0.00 s | details |
#63 | WRONG ANSWER | 0.00 s | details |
#64 | WRONG ANSWER | 0.00 s | details |
#65 | WRONG ANSWER | 0.00 s | details |
#66 | WRONG ANSWER | 0.00 s | details |
#67 | WRONG ANSWER | 0.00 s | details |
#68 | WRONG ANSWER | 0.00 s | details |
#69 | WRONG ANSWER | 0.00 s | details |
#70 | WRONG ANSWER | 0.00 s | details |
#71 | WRONG ANSWER | 0.01 s | details |
#72 | WRONG ANSWER | 0.00 s | details |
#73 | WRONG ANSWER | 0.00 s | details |
#74 | WRONG ANSWER | 0.00 s | details |
#75 | WRONG ANSWER | 0.00 s | details |
#76 | WRONG ANSWER | 0.00 s | details |
#77 | WRONG ANSWER | 0.00 s | details |
#78 | WRONG ANSWER | 0.00 s | details |
#79 | WRONG ANSWER | 0.00 s | details |
#80 | WRONG ANSWER | 0.00 s | details |
#81 | WRONG ANSWER | 0.00 s | details |
#82 | WRONG ANSWER | 0.00 s | details |
#83 | WRONG ANSWER | 0.00 s | details |
#84 | WRONG ANSWER | 0.00 s | details |
#85 | WRONG ANSWER | 0.00 s | details |
#86 | WRONG ANSWER | 0.01 s | details |
#87 | WRONG ANSWER | 0.04 s | details |
#88 | WRONG ANSWER | 0.03 s | details |
#89 | WRONG ANSWER | 0.04 s | details |
#90 | WRONG ANSWER | 0.00 s | details |
#91 | WRONG ANSWER | 0.00 s | details |
#92 | WRONG ANSWER | 0.00 s | details |
#93 | WRONG ANSWER | 0.00 s | details |
#94 | WRONG ANSWER | 0.00 s | details |
#95 | WRONG ANSWER | 0.00 s | details |
#96 | WRONG ANSWER | 0.00 s | details |
#97 | WRONG ANSWER | 0.00 s | details |
#98 | WRONG ANSWER | 0.01 s | details |
#99 | WRONG ANSWER | 0.04 s | details |
#100 | WRONG ANSWER | 0.00 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:19:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 19 | for (int i = 1; i < vals.size(); i++) | ~~^~~~~~~~~~~~~
Code
// Online C++ compiler to run C++ program online #include <iostream> #include <vector> using namespace std; int main() { int n; // Length of array cin >> n; vector<int> vals(n); for (int i = 0; i < n; i++) { cin >> vals[i]; } long long int res = vals[0]; long long int maxEnding = vals[0]; for (int i = 1; i < vals.size(); i++) { maxEnding = max<long long>(vals[i], maxEnding + vals[i]); res = max<long long>(maxEnding, res); } cout << res; return 0; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
3 41702 99720 72033 |
correct output |
---|
58018 |
user output |
---|
213455 |
Test 2
Verdict: WRONG ANSWER
input |
---|
4 41702 99720 72033 93257 |
correct output |
---|
192977 |
user output |
---|
306712 |
Test 3
Verdict: WRONG ANSWER
input |
---|
5 41702 99720 72033 93257 11 |
correct output |
---|
192966 |
user output |
---|
306723 |
Test 4
Verdict: WRONG ANSWER
input |
---|
6 41702 99720 72033 93257 11 128... |
correct output |
---|
205789 |
user output |
---|
319535 |
Test 5
Verdict: WRONG ANSWER
input |
---|
7 41702 99720 72033 93257 11 128... |
correct output |
---|
223199 |
user output |
---|
349768 |
Test 6
Verdict: WRONG ANSWER
input |
---|
10 41702 99720 72033 93257 11 128... |
correct output |
---|
329303 |
user output |
---|
487957 |
Test 7
Verdict: WRONG ANSWER
input |
---|
3 43600 18508 2592 |
correct output |
---|
41008 |
user output |
---|
64700 |
Test 8
Verdict: WRONG ANSWER
input |
---|
4 43600 18508 2592 93155 |
correct output |
---|
111663 |
user output |
---|
157855 |
Test 9
Verdict: WRONG ANSWER
input |
---|
5 43600 18508 2592 93155 54967 |
correct output |
---|
134163 |
user output |
---|
212822 |
Test 10
Verdict: WRONG ANSWER
input |
---|
6 43600 18508 2592 93155 54967 9... |
correct output |
---|
206437 |
user output |
---|
307596 |
Test 11
Verdict: WRONG ANSWER
input |
---|
7 43600 18508 2592 93155 54967 9... |
correct output |
---|
228937 |
user output |
---|
351128 |
Test 12
Verdict: WRONG ANSWER
input |
---|
10 43600 18508 2592 93155 54967 9... |
correct output |
---|
286966 |
user output |
---|
473694 |
Test 13
Verdict: WRONG ANSWER
input |
---|
3 55080 7072 70815 |
correct output |
---|
63743 |
user output |
---|
132967 |
Test 14
Verdict: WRONG ANSWER
input |
---|
4 55080 7072 70815 83996 |
correct output |
---|
125895 |
user output |
---|
216963 |
Test 15
Verdict: WRONG ANSWER
input |
---|
5 55080 7072 70815 83996 29090 |
correct output |
---|
132004 |
user output |
---|
246053 |
Test 16
Verdict: WRONG ANSWER
input |
---|
6 55080 7072 70815 83996 29090 1... |
correct output |
---|
154985 |
user output |
---|
258186 |
Test 17
Verdict: WRONG ANSWER
input |
---|
7 55080 7072 70815 83996 29090 1... |
correct output |
---|
144137 |
user output |
---|
309269 |
Test 18
Verdict: WRONG ANSWER
input |
---|
10 96704 90063 54724 17269 97269 ... |
correct output |
---|
389952 |
user output |
---|
703507 |
Test 19
Verdict: WRONG ANSWER
input |
---|
3 96704 90063 54724 |
correct output |
---|
41980 |
user output |
---|
241491 |
Test 20
Verdict: WRONG ANSWER
input |
---|
4 96704 90063 54724 17269 |
correct output |
---|
151428 |
user output |
---|
258760 |
Test 21
Verdict: WRONG ANSWER
input |
---|
5 96704 90063 54724 17269 97269 |
correct output |
---|
170063 |
user output |
---|
356029 |
Test 22
Verdict: WRONG ANSWER
input |
---|
6 96704 90063 54724 17269 97269 ... |
correct output |
---|
248697 |
user output |
---|
441592 |
Test 23
Verdict: WRONG ANSWER
input |
---|
7 96704 90063 54724 17269 97269 ... |
correct output |
---|
241545 |
user output |
---|
513074 |
Test 24
Verdict: WRONG ANSWER
input |
---|
10 96704 90063 54724 17269 97269 ... |
correct output |
---|
389952 |
user output |
---|
703507 |
Test 25
Verdict: WRONG ANSWER
input |
---|
50 41702 99720 72033 93257 11 128... |
correct output |
---|
1508857 |
user output |
---|
2608537 |
Test 26
Verdict: WRONG ANSWER
input |
---|
50 43600 18508 2592 93155 54967 9... |
correct output |
---|
1261022 |
user output |
---|
2185595 |
Test 27
Verdict: WRONG ANSWER
input |
---|
50 55080 7072 70815 83996 29090 1... |
correct output |
---|
1204485 |
user output |
---|
2151516 |
Test 28
Verdict: WRONG ANSWER
input |
---|
50 96704 90063 54724 17269 97269 ... |
correct output |
---|
1548881 |
user output |
---|
2668631 |
Test 29
Verdict: WRONG ANSWER
input |
---|
250 41702 99720 72033 93257 11 128... |
correct output |
---|
7048856 |
user output |
---|
12277331 |
Test 30
Verdict: WRONG ANSWER
input |
---|
250 43600 18508 2592 93155 54967 9... |
correct output |
---|
7355456 |
user output |
---|
13083045 |
Test 31
Verdict: WRONG ANSWER
input |
---|
250 55080 7072 70815 83996 29090 1... |
correct output |
---|
6879335 |
user output |
---|
12163280 |
Test 32
Verdict: WRONG ANSWER
input |
---|
250 96704 90063 54724 17269 97269 ... |
correct output |
---|
7241700 |
user output |
---|
12525153 |
Test 33
Verdict: WRONG ANSWER
input |
---|
900 41702 99720 72033 93257 11 128... |
correct output |
---|
25585084 |
user output |
---|
44170001 |
Test 34
Verdict: WRONG ANSWER
input |
---|
900 43600 18508 2592 93155 54967 9... |
correct output |
---|
25559325 |
user output |
---|
44337303 |
Test 35
Verdict: WRONG ANSWER
input |
---|
900 55080 7072 70815 83996 29090 1... |
correct output |
---|
25395388 |
user output |
---|
44995999 |
Test 36
Verdict: WRONG ANSWER
input |
---|
900 96704 90063 54724 17269 97269 ... |
correct output |
---|
25722421 |
user output |
---|
45193703 |
Test 37
Verdict: WRONG ANSWER
input |
---|
10000 41702 99720 72033 93257 11 128... |
correct output |
---|
286456959 |
user output |
---|
500572649 |
Test 38
Verdict: WRONG ANSWER
input |
---|
3 2 3 3 |
correct output |
---|
1 |
user output |
---|
8 |
Test 39
Verdict: WRONG ANSWER
input |
---|
4 2 4 3 4 |
correct output |
---|
8 |
user output |
---|
13 |
Test 40
Verdict: WRONG ANSWER
input |
---|
5 3 5 4 5 1 |
correct output |
---|
9 |
user output |
---|
18 |
Test 41
Verdict: WRONG ANSWER
input |
---|
6 3 6 5 6 1 1 |
correct output |
---|
13 |
user output |
---|
22 |
Test 42
Verdict: WRONG ANSWER
input |
---|
7 3 7 6 7 1 1 3 |
correct output |
---|
16 |
user output |
---|
28 |
Test 43
Verdict: WRONG ANSWER
input |
---|
10 5 10 8 10 1 2 4 10 2 3 |
correct output |
---|
35 |
user output |
---|
55 |
Test 44
Verdict: WRONG ANSWER
input |
---|
3 2 1 1 |
correct output |
---|
1 |
user output |
---|
4 |
Test 45
Verdict: WRONG ANSWER
input |
---|
4 2 1 1 4 |
correct output |
---|
5 |
user output |
---|
8 |
Test 46
Verdict: WRONG ANSWER
input |
---|
5 3 1 1 5 3 |
correct output |
---|
7 |
user output |
---|
13 |
Test 47
Verdict: WRONG ANSWER
input |
---|
6 3 2 1 6 4 6 |
correct output |
---|
14 |
user output |
---|
22 |
Test 48
Verdict: WRONG ANSWER
input |
---|
7 4 2 1 7 4 7 4 |
correct output |
---|
17 |
user output |
---|
29 |
Test 49
Verdict: WRONG ANSWER
input |
---|
10 5 2 1 10 6 10 5 5 5 4 |
correct output |
---|
31 |
user output |
---|
53 |
Test 50
Verdict: WRONG ANSWER
input |
---|
3 2 3 3 |
correct output |
---|
1 |
user output |
---|
8 |
Test 51
Verdict: WRONG ANSWER
input |
---|
4 2 4 3 4 |
correct output |
---|
8 |
user output |
---|
13 |
Test 52
Verdict: WRONG ANSWER
input |
---|
5 3 5 4 5 1 |
correct output |
---|
9 |
user output |
---|
18 |
Test 53
Verdict: WRONG ANSWER
input |
---|
6 3 6 5 6 1 1 |
correct output |
---|
13 |
user output |
---|
22 |
Test 54
Verdict: WRONG ANSWER
input |
---|
7 3 7 6 7 1 1 3 |
correct output |
---|
16 |
user output |
---|
28 |
Test 55
Verdict: WRONG ANSWER
input |
---|
10 5 10 8 10 1 2 4 10 2 3 |
correct output |
---|
35 |
user output |
---|
55 |
Test 56
Verdict: WRONG ANSWER
input |
---|
3 2 1 1 |
correct output |
---|
1 |
user output |
---|
4 |
Test 57
Verdict: WRONG ANSWER
input |
---|
4 2 1 1 4 |
correct output |
---|
5 |
user output |
---|
8 |
Test 58
Verdict: WRONG ANSWER
input |
---|
5 3 1 1 5 3 |
correct output |
---|
7 |
user output |
---|
13 |
Test 59
Verdict: WRONG ANSWER
input |
---|
6 3 2 1 6 4 6 |
correct output |
---|
14 |
user output |
---|
22 |
Test 60
Verdict: WRONG ANSWER
input |
---|
7 4 2 1 7 4 7 4 |
correct output |
---|
17 |
user output |
---|
29 |
Test 61
Verdict: WRONG ANSWER
input |
---|
10 5 2 1 10 6 10 5 5 5 4 |
correct output |
---|
31 |
user output |
---|
53 |
Test 62
Verdict: WRONG ANSWER
input |
---|
3 2 1 3 |
correct output |
---|
2 |
user output |
---|
6 |
Test 63
Verdict: WRONG ANSWER
input |
---|
4 3 1 3 4 |
correct output |
---|
6 |
user output |
---|
11 |
Test 64
Verdict: WRONG ANSWER
input |
---|
5 3 1 4 5 2 |
correct output |
---|
7 |
user output |
---|
15 |
Test 65
Verdict: WRONG ANSWER
input |
---|
6 4 1 5 6 2 1 |
correct output |
---|
11 |
user output |
---|
19 |
Test 66
Verdict: WRONG ANSWER
input |
---|
7 4 1 5 6 3 1 4 |
correct output |
---|
11 |
user output |
---|
24 |
Test 67
Verdict: WRONG ANSWER
input |
---|
10 10 10 6 2 10 9 8 7 7 6 |
correct output |
---|
41 |
user output |
---|
75 |
Test 68
Verdict: WRONG ANSWER
input |
---|
3 3 3 2 |
correct output |
---|
1 |
user output |
---|
8 |
Test 69
Verdict: WRONG ANSWER
input |
---|
4 4 4 3 1 |
correct output |
---|
7 |
user output |
---|
12 |
Test 70
Verdict: WRONG ANSWER
input |
---|
5 5 5 3 1 5 |
correct output |
---|
9 |
user output |
---|
19 |
Test 71
Verdict: WRONG ANSWER
input |
---|
6 6 6 4 2 6 6 |
correct output |
---|
16 |
user output |
---|
30 |
Test 72
Verdict: WRONG ANSWER
input |
---|
7 7 7 4 2 7 6 6 |
correct output |
---|
18 |
user output |
---|
39 |
Test 73
Verdict: WRONG ANSWER
input |
---|
10 10 10 6 2 10 9 8 7 7 6 |
correct output |
---|
41 |
user output |
---|
75 |
Test 74
Verdict: WRONG ANSWER
input |
---|
50 21 50 37 47 1 7 16 50 8 12 5 2... |
correct output |
---|
764 |
user output |
---|
1326 |
Test 75
Verdict: WRONG ANSWER
input |
---|
50 22 10 2 47 28 48 22 25 22 17 1... |
correct output |
---|
641 |
user output |
---|
1116 |
Test 76
Verdict: WRONG ANSWER
input |
---|
50 28 4 36 42 15 7 26 29 45 22 45... |
correct output |
---|
610 |
user output |
---|
1098 |
Test 77
Verdict: WRONG ANSWER
input |
---|
50 49 46 28 9 49 43 36 31 35 30 1... |
correct output |
---|
783 |
user output |
---|
1359 |
Test 78
Verdict: WRONG ANSWER
input |
---|
250 105 250 181 234 1 33 76 250 37... |
correct output |
---|
17676 |
user output |
---|
30820 |
Test 79
Verdict: WRONG ANSWER
input |
---|
250 109 47 7 233 138 237 109 122 1... |
correct output |
---|
18449 |
user output |
---|
32835 |
Test 80
Verdict: WRONG ANSWER
input |
---|
250 138 18 178 210 73 31 128 143 2... |
correct output |
---|
17250 |
user output |
---|
30537 |
Test 81
Verdict: WRONG ANSWER
input |
---|
250 242 226 137 44 244 214 179 153... |
correct output |
---|
18157 |
user output |
---|
31438 |
Test 82
Verdict: WRONG ANSWER
input |
---|
900 376 898 649 840 1 116 273 900 ... |
correct output |
---|
230450 |
user output |
---|
397971 |
Test 83
Verdict: WRONG ANSWER
input |
---|
900 393 167 24 839 495 853 392 437... |
correct output |
---|
230221 |
user output |
---|
399477 |
Test 84
Verdict: WRONG ANSWER
input |
---|
900 496 64 638 756 262 110 460 513... |
correct output |
---|
228745 |
user output |
---|
405413 |
Test 85
Verdict: WRONG ANSWER
input |
---|
900 871 811 493 156 876 771 644 54... |
correct output |
---|
231686 |
user output |
---|
407190 |
Test 86
Verdict: WRONG ANSWER
input |
---|
10000 4171 9972 7204 9326 2 1282 302... |
correct output |
---|
28647603 |
user output |
---|
50062083 |
Test 87
Verdict: WRONG ANSWER
input |
---|
100000 41703 99721 72034 93258 12 128... |
correct output |
---|
2838931183 |
user output |
---|
4991834428 |
Test 88
Verdict: WRONG ANSWER
input |
---|
100000 43601 18509 2593 93156 54968 9... |
correct output |
---|
2842573127 |
user output |
---|
4998839221 |
Test 89
Verdict: WRONG ANSWER
input |
---|
100000 55081 7073 70816 83997 29091 1... |
correct output |
---|
2839271262 |
user output |
---|
5001012667 |
Test 90
Verdict: WRONG ANSWER
input |
---|
4 100000 100000 100000 100000 |
correct output |
---|
200000 |
user output |
---|
400000 |
Test 91
Verdict: WRONG ANSWER
input |
---|
5 100000 100000 100000 100000 10... |
correct output |
---|
100000 |
user output |
---|
500000 |
Test 92
Verdict: WRONG ANSWER
input |
---|
6 100000 100000 100000 100000 10... |
correct output |
---|
300000 |
user output |
---|
600000 |
Test 93
Verdict: WRONG ANSWER
input |
---|
7 100000 100000 100000 100000 10... |
correct output |
---|
200000 |
user output |
---|
700000 |
Test 94
Verdict: WRONG ANSWER
input |
---|
10 100000 100000 100000 100000 10... |
correct output |
---|
500000 |
user output |
---|
1000000 |
Test 95
Verdict: WRONG ANSWER
input |
---|
50 100000 100000 100000 100000 10... |
correct output |
---|
2500000 |
user output |
---|
5000000 |
Test 96
Verdict: WRONG ANSWER
input |
---|
250 100000 100000 100000 100000 10... |
correct output |
---|
12500000 |
user output |
---|
25000000 |
Test 97
Verdict: WRONG ANSWER
input |
---|
900 100000 100000 100000 100000 10... |
correct output |
---|
45000000 |
user output |
---|
90000000 |
Test 98
Verdict: WRONG ANSWER
input |
---|
10000 100000 100000 100000 100000 10... |
correct output |
---|
500000000 |
user output |
---|
1000000000 |
Test 99
Verdict: WRONG ANSWER
input |
---|
100000 100000 100000 100000 100000 10... |
correct output |
---|
5000000000 |
user output |
---|
10000000000 |
Test 100
Verdict: WRONG ANSWER
input |
---|
3 100000 100000 100000 |
correct output |
---|
0 |
user output |
---|
300000 |