Submission details
Task:Rain Fall
Sender:z
Submission time:2016-10-04 16:43:24 +0300
Language:C++
Status:READY
Result:
Test results
testverdicttime
#10.05 sdetails
#20.05 sdetails
#30.04 sdetails
#40.04 sdetails
#50.03 sdetails
#60.04 sdetails
#70.03 sdetails
#80.04 sdetails
#90.03 sdetails
#100.03 sdetails
#110.03 sdetails
#120.05 sdetails
#130.04 sdetails
#140.05 sdetails
#150.03 sdetails
#160.04 sdetails
#170.03 sdetails
#180.04 sdetails
#190.03 sdetails
#200.04 sdetails
#210.03 sdetails
#220.06 sdetails
#230.05 sdetails
#240.03 sdetails
#250.05 sdetails
#260.03 sdetails
#270.04 sdetails
#280.04 sdetails
#290.04 sdetails
#300.02 sdetails
#310.03 sdetails
#320.03 sdetails
#330.04 sdetails
#340.03 sdetails
#350.04 sdetails
#360.04 sdetails

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:

input
80.00 0.50 2.00 1.50 80.00

correct output
80.000000000 80.759403280

user output
not sure

Test 2

Verdict:

input
100.00 0.50 2.00 1.50 80.00

correct output
80.000000000 80.000000000

user output
not sure

Test 3

Verdict:

input
150.00 1.00 100.00 150.00 100....

correct output
100.000000000 100.000000000

user output
not sure

Test 4

Verdict:

input
150.00 1.00 100.00 150.00 150....

correct output
150.000000000 358.113883008

user output
not sure

Test 5

Verdict:

input
150.00 1.00 100.00 15.00 415.0...

correct output
500.000000000 500.000000000

user output
not sure

Test 6

Verdict:

input
50.00 5.00 2.00 2.00 40.00

correct output
40.000000000 40.000000000

user output
not sure

Test 7

Verdict:

input
50.00 5.00 2.00 2.00 50.00

correct output
50.000000000 61.925824036

user output
not sure

Test 8

Verdict:

input
50.00 5.00 2.00 2.00 65.00

correct output
78.642080737 78.642080737

user output
not sure

Test 9

Verdict:

input
10.00 1.00 3.00 3.00 3.00

correct output
3.000000000 3.000000000

user output
not sure

Test 10

Verdict:

input
10.00 1.00 3.00 3.00 10.00

correct output
10.000000000 13.830951895

user output
not sure

Test 11

Verdict:

input
10.00 1.00 3.00 3.00 16.00

correct output
20.539392014 20.539392014

user output
not sure

Test 12

Verdict:

input
10.00 1.00 3.00 3.00 25.00

correct output
30.000000000 30.000000000

user output
not sure

Test 13

Verdict:

input
10.00 1.00 3.00 3.00 33.00

correct output
38.214967272 38.214967272

user output
not sure

Test 14

Verdict:

input
1.00 2.00 3.00 2.00 5.00

correct output
14.588723439 14.588723439

user output
not sure

Test 15

Verdict:

input
6.00 2.00 3.00 2.00 7.00

correct output
14.520797289 14.520797289

user output
not sure

Test 16

Verdict:

input
11.00 2.00 3.00 2.00 11.00

correct output
11.000000000 17.152067348

user output
not sure

Test 17

Verdict:

input
16.00 2.00 3.00 2.00 15.00

correct output
15.000000000 15.000000000

user output
not sure

Test 18

Verdict:

input
21.00 2.00 3.00 2.00 15.00

correct output
15.000000000 15.000000000

user output
not sure

Test 19

Verdict:

input
26.00 2.00 3.00 2.00 15.00

correct output
15.000000000 15.000000000

user output
not sure

Test 20

Verdict:

input
31.00 2.00 3.00 2.00 15.00

correct output
15.000000000 15.000000000

user output
not sure

Test 21

Verdict:

input
25.00 2.00 1.00 1.00 10.00

correct output
10.000000000 10.000000000

user output
not sure

Test 22

Verdict:

input
25.00 2.00 1.00 2.00 10.00

correct output
10.000000000 10.000000000

user output
not sure

Test 23

Verdict:

input
25.00 2.00 1.00 3.00 10.00

correct output
10.000000000 10.000000000

user output
not sure

Test 24

Verdict:

input
25.00 2.00 2.00 1.00 20.00

correct output
20.000000000 20.000000000

user output
not sure

Test 25

Verdict:

input
25.00 2.00 2.00 2.00 20.00

correct output
20.000000000 20.000000000

user output
not sure

Test 26

Verdict:

input
25.00 2.00 2.00 3.00 20.00

correct output
20.000000000 20.000000000

user output
not sure

Test 27

Verdict:

input
25.00 2.00 3.00 1.00 26.00

correct output
28.789826123 28.789826123

user output
not sure

Test 28

Verdict:

input
25.00 2.00 3.00 2.00 25.00

correct output
25.000000000 30.000000000

user output
not sure

Test 29

Verdict:

input
25.00 2.00 3.00 3.00 25.00

correct output
25.000000000 32.365424624

user output
not sure

Test 30

Verdict:

input
25.00 2.00 4.00 1.00 34.00

correct output
38.852299546 38.852299546

user output
not sure

Test 31

Verdict:

input
25.00 2.00 4.00 2.00 32.00

correct output
38.852299546 38.852299546

user output
not sure

Test 32

Verdict:

input
25.00 2.00 4.00 3.00 30.00

correct output
38.852299546 38.852299546

user output
not sure

Test 33

Verdict:

input
25.00 2.00 3.00 2.00 25.00

correct output
25.000000000 30.000000000

user output
not sure

Test 34

Verdict:

input
25.00 2.00 3.00 3.00 25.00

correct output
25.000000000 32.365424624

user output
not sure

Test 35

Verdict:

input
5.00 7.00 0.01 2.00 6.00

correct output
20.052545857 20.052545857

user output
not sure

Test 36

Verdict:

input
0.01 1000.00 1000.00 1000.00 1...

correct output
2000999.995002499 2000999.9950...

user output
not sure