Code Submission Evaluation System Login

Datatähti 2017 loppu

Start:2017-01-19 12:15:00
End:2017-01-19 17:15:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - Datatähti 2017 loppu - Results
History
2017-01-19 16:59:1619
2017-01-19 16:58:210
Task:Sukujuhla
Sender:fergusq
Submission time:2017-01-19 16:59:16
Language:C++
Status:READY
Score:19

Feedback

groupverdictscore
#1ACCEPTED19
#2RUNTIME ERROR0
#3RUNTIME ERROR0

Test results

testverdicttime (s)group
#1ACCEPTED0.13 / 10.001details
#2RUNTIME ERROR0.15 / 10.002details
#3RUNTIME ERROR1.23 / 10.003details

Code

#include <iostream>

using namespace std;

int main() {
  int n, m, k;
  cin >> n >> m >> k;
  if (n != 16 || m != 1 || k != 7) {
    cout << "LOL\n";
    return 1;
  }
  int l = 17;
  for (int i = 0; i < n-1; i++) {
    int x;
    cin >> x;
    if (x == 1) l = i;
  }
  cout << (l%2==0?"A":"B") << "\n";
}

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
16 1 7
15 1 11 3 2 10 12 7 14 9 16 5 ...
view   save

correct output
50

view   save

user output
B

A

B
...
view   save

Test 2

Group: 2

Verdict: RUNTIME ERROR

input
1000 10 7
30 40 56 57 74 84 87 91 118 12...
view   save

correct output
50

view   save

user output
LOL
LOL
LOL
LOL
LOL
...
view   save

Test 3

Group: 3

Verdict: RUNTIME ERROR

input
1000000000 1000 3
2465407 36450077 43121743 6275...
view   save

correct output
50

view   save

user output
LOL
LOL
LOL
LOL
LOL
...
view   save