Task: | Rain Fall |
Sender: | z |
Submission time: | 2016-10-04 16:43:24 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.05 s | details |
#2 | WRONG ANSWER | 0.05 s | details |
#3 | WRONG ANSWER | 0.04 s | details |
#4 | WRONG ANSWER | 0.04 s | details |
#5 | WRONG ANSWER | 0.03 s | details |
#6 | WRONG ANSWER | 0.04 s | details |
#7 | WRONG ANSWER | 0.03 s | details |
#8 | WRONG ANSWER | 0.04 s | details |
#9 | WRONG ANSWER | 0.03 s | details |
#10 | WRONG ANSWER | 0.03 s | details |
#11 | WRONG ANSWER | 0.03 s | details |
#12 | WRONG ANSWER | 0.05 s | details |
#13 | WRONG ANSWER | 0.04 s | details |
#14 | WRONG ANSWER | 0.05 s | details |
#15 | WRONG ANSWER | 0.03 s | details |
#16 | WRONG ANSWER | 0.04 s | details |
#17 | WRONG ANSWER | 0.03 s | details |
#18 | WRONG ANSWER | 0.04 s | details |
#19 | WRONG ANSWER | 0.03 s | details |
#20 | WRONG ANSWER | 0.04 s | details |
#21 | WRONG ANSWER | 0.03 s | details |
#22 | WRONG ANSWER | 0.06 s | details |
#23 | WRONG ANSWER | 0.05 s | details |
#24 | WRONG ANSWER | 0.03 s | details |
#25 | WRONG ANSWER | 0.05 s | details |
#26 | WRONG ANSWER | 0.03 s | details |
#27 | WRONG ANSWER | 0.04 s | details |
#28 | WRONG ANSWER | 0.04 s | details |
#29 | WRONG ANSWER | 0.04 s | details |
#30 | WRONG ANSWER | 0.02 s | details |
#31 | WRONG ANSWER | 0.03 s | details |
#32 | WRONG ANSWER | 0.03 s | details |
#33 | WRONG ANSWER | 0.04 s | details |
#34 | WRONG ANSWER | 0.03 s | details |
#35 | WRONG ANSWER | 0.04 s | details |
#36 | WRONG ANSWER | 0.04 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:20:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<s.size()-3; ++i){ ^ input/code.cpp:18:7: warning: unused variable 'lm' [-Wunused-variable] int lm=-5; ^ input/code.cpp:19:7: warning: unused variable 'lk' [-Wunused-variable] int lk=-5; ^
Code
#include <iostream> using namespace std; string s; int ml(int i){ if (s[i]=='G' && s[i+1]=='C' && s[i+2]=='G' && s[i+3]=='C') return 1; return 0; } int kl(int i){ if (s[i]=='A' && s[i+1]=='T' && s[i+2]=='A' && s[i+3]=='T') return 1; return 0; } int main(){ cin >> s; int m=0; int k=0; int lm=-5; int lk=-5; for (int i=0; i<s.size()-3; ++i){ k+=kl(i); m+=ml(i); } if (m>k){ cout << "Maija\n"; }else if (k>m){ cout << "Kaaleppi\n"; }else{ cout << "not sure\n"; } }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
80.00 0.50 2.00 1.50 80.00 |
correct output |
---|
80.000000000 80.759403280 |
user output |
---|
not sure |
Test 2
Verdict: WRONG ANSWER
input |
---|
100.00 0.50 2.00 1.50 80.00 |
correct output |
---|
80.000000000 80.000000000 |
user output |
---|
not sure |
Test 3
Verdict: WRONG ANSWER
input |
---|
150.00 1.00 100.00 150.00 100.... |
correct output |
---|
100.000000000 100.000000000 |
user output |
---|
not sure |
Test 4
Verdict: WRONG ANSWER
input |
---|
150.00 1.00 100.00 150.00 150.... |
correct output |
---|
150.000000000 358.113883008 |
user output |
---|
not sure |
Test 5
Verdict: WRONG ANSWER
input |
---|
150.00 1.00 100.00 15.00 415.0... |
correct output |
---|
500.000000000 500.000000000 |
user output |
---|
not sure |
Test 6
Verdict: WRONG ANSWER
input |
---|
50.00 5.00 2.00 2.00 40.00 |
correct output |
---|
40.000000000 40.000000000 |
user output |
---|
not sure |
Test 7
Verdict: WRONG ANSWER
input |
---|
50.00 5.00 2.00 2.00 50.00 |
correct output |
---|
50.000000000 61.925824036 |
user output |
---|
not sure |
Test 8
Verdict: WRONG ANSWER
input |
---|
50.00 5.00 2.00 2.00 65.00 |
correct output |
---|
78.642080737 78.642080737 |
user output |
---|
not sure |
Test 9
Verdict: WRONG ANSWER
input |
---|
10.00 1.00 3.00 3.00 3.00 |
correct output |
---|
3.000000000 3.000000000 |
user output |
---|
not sure |
Test 10
Verdict: WRONG ANSWER
input |
---|
10.00 1.00 3.00 3.00 10.00 |
correct output |
---|
10.000000000 13.830951895 |
user output |
---|
not sure |
Test 11
Verdict: WRONG ANSWER
input |
---|
10.00 1.00 3.00 3.00 16.00 |
correct output |
---|
20.539392014 20.539392014 |
user output |
---|
not sure |
Test 12
Verdict: WRONG ANSWER
input |
---|
10.00 1.00 3.00 3.00 25.00 |
correct output |
---|
30.000000000 30.000000000 |
user output |
---|
not sure |
Test 13
Verdict: WRONG ANSWER
input |
---|
10.00 1.00 3.00 3.00 33.00 |
correct output |
---|
38.214967272 38.214967272 |
user output |
---|
not sure |
Test 14
Verdict: WRONG ANSWER
input |
---|
1.00 2.00 3.00 2.00 5.00 |
correct output |
---|
14.588723439 14.588723439 |
user output |
---|
not sure |
Test 15
Verdict: WRONG ANSWER
input |
---|
6.00 2.00 3.00 2.00 7.00 |
correct output |
---|
14.520797289 14.520797289 |
user output |
---|
not sure |
Test 16
Verdict: WRONG ANSWER
input |
---|
11.00 2.00 3.00 2.00 11.00 |
correct output |
---|
11.000000000 17.152067348 |
user output |
---|
not sure |
Test 17
Verdict: WRONG ANSWER
input |
---|
16.00 2.00 3.00 2.00 15.00 |
correct output |
---|
15.000000000 15.000000000 |
user output |
---|
not sure |
Test 18
Verdict: WRONG ANSWER
input |
---|
21.00 2.00 3.00 2.00 15.00 |
correct output |
---|
15.000000000 15.000000000 |
user output |
---|
not sure |
Test 19
Verdict: WRONG ANSWER
input |
---|
26.00 2.00 3.00 2.00 15.00 |
correct output |
---|
15.000000000 15.000000000 |
user output |
---|
not sure |
Test 20
Verdict: WRONG ANSWER
input |
---|
31.00 2.00 3.00 2.00 15.00 |
correct output |
---|
15.000000000 15.000000000 |
user output |
---|
not sure |
Test 21
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 1.00 1.00 10.00 |
correct output |
---|
10.000000000 10.000000000 |
user output |
---|
not sure |
Test 22
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 1.00 2.00 10.00 |
correct output |
---|
10.000000000 10.000000000 |
user output |
---|
not sure |
Test 23
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 1.00 3.00 10.00 |
correct output |
---|
10.000000000 10.000000000 |
user output |
---|
not sure |
Test 24
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 2.00 1.00 20.00 |
correct output |
---|
20.000000000 20.000000000 |
user output |
---|
not sure |
Test 25
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 2.00 2.00 20.00 |
correct output |
---|
20.000000000 20.000000000 |
user output |
---|
not sure |
Test 26
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 2.00 3.00 20.00 |
correct output |
---|
20.000000000 20.000000000 |
user output |
---|
not sure |
Test 27
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 3.00 1.00 26.00 |
correct output |
---|
28.789826123 28.789826123 |
user output |
---|
not sure |
Test 28
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 3.00 2.00 25.00 |
correct output |
---|
25.000000000 30.000000000 |
user output |
---|
not sure |
Test 29
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 3.00 3.00 25.00 |
correct output |
---|
25.000000000 32.365424624 |
user output |
---|
not sure |
Test 30
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 4.00 1.00 34.00 |
correct output |
---|
38.852299546 38.852299546 |
user output |
---|
not sure |
Test 31
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 4.00 2.00 32.00 |
correct output |
---|
38.852299546 38.852299546 |
user output |
---|
not sure |
Test 32
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 4.00 3.00 30.00 |
correct output |
---|
38.852299546 38.852299546 |
user output |
---|
not sure |
Test 33
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 3.00 2.00 25.00 |
correct output |
---|
25.000000000 30.000000000 |
user output |
---|
not sure |
Test 34
Verdict: WRONG ANSWER
input |
---|
25.00 2.00 3.00 3.00 25.00 |
correct output |
---|
25.000000000 32.365424624 |
user output |
---|
not sure |
Test 35
Verdict: WRONG ANSWER
input |
---|
5.00 7.00 0.01 2.00 6.00 |
correct output |
---|
20.052545857 20.052545857 |
user output |
---|
not sure |
Test 36
Verdict: WRONG ANSWER
input |
---|
0.01 1000.00 1000.00 1000.00 1... |
correct output |
---|
2000999.995002499 2000999.9950... |
user output |
---|
not sure |