Task: | Backup |
Sender: | Katajisto |
Submission time: | 2019-03-07 18:01:18 +0200 |
Language: | C++ |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | TIME LIMIT EXCEEDED | 0 |
#2 | TIME LIMIT EXCEEDED | 0 |
#3 | TIME LIMIT EXCEEDED | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | TIME LIMIT EXCEEDED | -- | 1, 2, 3 | details |
#2 | TIME LIMIT EXCEEDED | -- | 1, 2, 3 | details |
#3 | TIME LIMIT EXCEEDED | -- | 3 | details |
#4 | TIME LIMIT EXCEEDED | -- | 3 | details |
#5 | TIME LIMIT EXCEEDED | -- | 1, 2, 3 | details |
#6 | TIME LIMIT EXCEEDED | -- | 2, 3 | details |
#7 | TIME LIMIT EXCEEDED | -- | 1, 2, 3 | details |
#8 | TIME LIMIT EXCEEDED | -- | 1, 2, 3 | details |
#9 | TIME LIMIT EXCEEDED | -- | 2, 3 | details |
#10 | TIME LIMIT EXCEEDED | -- | 2, 3 | details |
#11 | TIME LIMIT EXCEEDED | -- | 3 | details |
#12 | TIME LIMIT EXCEEDED | -- | 3 | details |
#13 | TIME LIMIT EXCEEDED | -- | 3 | details |
#14 | TIME LIMIT EXCEEDED | -- | 1, 2, 3 | details |
#15 | TIME LIMIT EXCEEDED | -- | 2, 3 | details |
#16 | TIME LIMIT EXCEEDED | -- | 3 | details |
#17 | TIME LIMIT EXCEEDED | -- | 3 | details |
#18 | TIME LIMIT EXCEEDED | -- | 2, 3 | details |
#19 | TIME LIMIT EXCEEDED | -- | 2, 3 | details |
#20 | TIME LIMIT EXCEEDED | -- | 3 | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:22:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result] system("clear"); ~~~~~~^~~~~~~~~
Code
#include<bits/stdc++.h> using namespace std; vector<string> sanat = { "include", "bit", "bits", "push", "time", "back", "push_back", "define", "namespace", "std", "using", "import", "main", "gen", "random", "srand", "eppaa", "kisa", "a.out", "a", "g++","cpp","tree","NULL","pop","push","top","front","arr","vector","pair","int","long","print","{","}","/","]","[","#include","#include<bits/stdc++.h>","vector<string>","map<pair<vector<pair<int,int>>,set<int>>,map<int,string>>"}; deque<string> st; void adds() { int sid = rand()%sanat.size(); st.push_front(sanat[sid]); } int score = 0; int main() { for(int i = 0; i < 10; i++) adds(); srand(time(NULL)); long start_t = time(NULL); float wc = 0; float lwc = 0; float mx = 0; while(1) { system("clear"); cout << "SCORE: " << score << " WPM FROM LAST MINUTE: " << lwc << " TOP WPM: " << mx << "\n"; for(string s : st) cout << s << "\n"; string us; cin >> us; if(us == st.back()) { score++; wc += st.back().length()/4; adds(); st.pop_back(); } if(abs(time(NULL)-start_t)>=60) { lwc = wc; wc = 0; start_t = time(NULL); mx = max(lwc,mx); } } }
Test details
Test 1
Group: 1, 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
2 1 0 1000000000 |
correct output |
---|
1000000000 |
user output |
---|
(empty) |
Test 2
Group: 1, 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
17 8 101266 101394 101458 101490 ... |
correct output |
---|
340 |
user output |
---|
(empty) |
Test 3
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 49000 29983 53806 76909 106815 ... |
correct output |
---|
411321413 |
user output |
---|
(empty) |
Test 4
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 30000 29983 53806 76909 106815 ... |
correct output |
---|
100755932 |
user output |
---|
(empty) |
Test 5
Group: 1, 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
20 10 126229031 250138471 333910089 443521720 ... |
correct output |
---|
537092323 |
user output |
---|
(empty) |
Test 6
Group: 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
10000 4999 168328 266967 462469 639689 ... |
correct output |
---|
492516409 |
user output |
---|
(empty) |
Test 7
Group: 1, 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
10 4 165 375 439 456 ... |
correct output |
---|
44 |
user output |
---|
(empty) |
Test 8
Group: 1, 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
20 9 4336 4500 4552 4702 ... |
correct output |
---|
773 |
user output |
---|
(empty) |
Test 9
Group: 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
2001 1000 1230 1440 1630 2230 ... |
correct output |
---|
493503 |
user output |
---|
(empty) |
Test 10
Group: 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
10000 3000 245408 417449 650973 863296 ... |
correct output |
---|
101056127 |
user output |
---|
(empty) |
Test 11
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
50000 20000 37035 37042 37046 37052 ... |
correct output |
---|
129968 |
user output |
---|
(empty) |
Test 12
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
99999 48000 15929 43928 65765 86730 ... |
correct output |
---|
375524431 |
user output |
---|
(empty) |
Test 13
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 1000 536 9214 34619 53734 ... |
correct output |
---|
75975 |
user output |
---|
(empty) |
Test 14
Group: 1, 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
10 4 5851 5854 5856 5859 ... |
correct output |
---|
2664 |
user output |
---|
(empty) |
Test 15
Group: 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100 45 3712 13742 17394 19428 ... |
correct output |
---|
140256 |
user output |
---|
(empty) |
Test 16
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
20000 400 3174 3175 3176 3179 ... |
correct output |
---|
803105 |
user output |
---|
(empty) |
Test 17
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 49000 3605 14510 18001 20881 ... |
correct output |
---|
162316123 |
user output |
---|
(empty) |
Test 18
Group: 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100 50 0 1000000 1000002 1000005 ... |
correct output |
---|
1002499 |
user output |
---|
(empty) |
Test 19
Group: 2, 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
1000 500 0 1000000 1000002 1000005 ... |
correct output |
---|
1249999 |
user output |
---|
(empty) |
Test 20
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 49494 123 65659 98427 114811 ... |
correct output |
---|
250954854 |
user output |
---|
(empty) |