Submission details
Task:Pile
Sender:Feeniksi
Submission time:2016-10-04 17:57:03 +0300
Language:Java
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.28 sdetails
#20.21 sdetails
#3ACCEPTED0.20 sdetails
#40.19 sdetails
#5ACCEPTED0.22 sdetails
#60.17 sdetails
#7ACCEPTED0.22 sdetails
#80.20 sdetails
#9ACCEPTED0.20 sdetails
#100.18 sdetails
#11ACCEPTED0.23 sdetails
#120.11 sdetails
#13ACCEPTED0.24 sdetails
#140.19 sdetails
#15ACCEPTED0.17 sdetails
#160.23 sdetails
#17ACCEPTED0.20 sdetails
#180.16 sdetails
#19ACCEPTED0.13 sdetails
#200.18 sdetails
#21ACCEPTED0.19 sdetails
#220.24 sdetails
#23ACCEPTED0.21 sdetails
#240.18 sdetails
#25ACCEPTED0.16 sdetails
#260.20 sdetails
#27ACCEPTED0.22 sdetails
#280.13 sdetails
#29ACCEPTED0.19 sdetails
#300.21 sdetails

Code

import java.util.ArrayList;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author viljampa
 */
public class kilpa52 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
                // TODO code application logic here
        IO io = new IO();
        ArrayList<Integer> lista = new ArrayList();
        boolean onko = true;
        
        int montako = io.nextInt();
        for (int i = 0; i < montako; i++) {
            lista.add(io.nextInt());
        }
//        int montako = 3;
//        lista.add(3);
//        lista.add(1);
//        lista.add(2);
        
//        lista.add(1);
//        lista.add(2);
//        lista.add(7);
//        lista.add(8);
//        lista.add(9);
//        lista.add(6);
//        lista.add(5);
//        lista.add(4);
//        lista.add(3);

//        lista.add(3);
//        lista.add(2);
//        lista.add(1);
//        lista.add(4);
//        lista.add(5);
//        lista.add(6);
//        lista.add(8);
//        lista.add(9);
//        lista.add(7);
        
        
        int apu = lista.get(0);
        
        for (int i = 1; i < montako; i++) {
            int edel = lista.get(i - 1);
            int seur = lista.get(i);
            if (apu - 1 == seur || edel < seur) {
                if (apu - 1 == seur) apu = seur;
                if (seur > edel + 1) apu = seur;
            } else {
//                System.out.println(seur);
                onko = false;
            }
        }
        
        if (onko) {
            io.println("Not a proof");
        } else {
            io.print("Cheater");
        }
        
//        io.println();
//	String a = io.next(); // Lukee seuraavan välein erotellun merkkijonon.
//	int b = io.nextInt(); // Lukee seuraavan välein erotellun int-kokonaisluvun.
//	long c = io.nextLong(); // Lukee seuraavan välein erotellun long-kokonaisluvun.
//	double d = io.nextDouble(); // Lukee seuraavan välein erotellun double-liukuluvun.

        // Toimii kuten System.out.println.
//	io.println("Annoit syötteenä " + a + " " + b + " " + c + " " + d);
        io.close();
    }
    
}

Test details

Test 1

Verdict: ACCEPTED

input
89384
25390
71865
40225
42587
...

correct output
Cheater

user output
Cheater

Test 2

Verdict:

input
43243
1
2
3
4
...

correct output
Not a proof

user output
Cheater

Test 3

Verdict: ACCEPTED

input
86810
44076
56049
66715
68415
...

correct output
Cheater

user output
Cheater

Test 4

Verdict:

input
55591
1
14
38
48
...

correct output
Not a proof

user output
Cheater

Test 5

Verdict: ACCEPTED

input
86222
62931
47306
80483
18748
...

correct output
Cheater

user output
Cheater

Test 6

Verdict:

input
15864
1
2
3
5
...

correct output
Not a proof

user output
Cheater

Test 7

Verdict: ACCEPTED

input
16149
2532
961
11156
5824
...

correct output
Cheater

user output
Cheater

Test 8

Verdict:

input
40507
1
2
3
4
...

correct output
Not a proof

user output
Cheater

Test 9

Verdict: ACCEPTED

input
36375
15643
9301
19803
7096
...

correct output
Cheater

user output
Cheater

Test 10

Verdict:

input
77660
3
15
23
25
...

correct output
Not a proof

user output
Cheater

Test 11

Verdict: ACCEPTED

input
56236
18697
40699
9296
14216
...

correct output
Cheater

user output
Cheater

Test 12

Verdict:

input
301
3
2
4
6
...

correct output
Not a proof

user output
Cheater

Test 13

Verdict: ACCEPTED

input
41231
26984
13528
2868
39701
...

correct output
Cheater

user output
Cheater

Test 14

Verdict:

input
72284
1
2
3
4
...

correct output
Not a proof

user output
Cheater

Test 15

Verdict: ACCEPTED

input
18969
3539
8598
12445
18178
...

correct output
Cheater

user output
Cheater

Test 16

Verdict:

input
54454
6
12
14
40
...

correct output
Not a proof

user output
Cheater

Test 17

Verdict: ACCEPTED

input
86784
84064
26105
59782
14615
...

correct output
Cheater

user output
Cheater

Test 18

Verdict:

input
54031
1
4
7
6
...

correct output
Not a proof

user output
Cheater

Test 19

Verdict: ACCEPTED

input
1161
825
98
511
987
...

correct output
Cheater

user output
Cheater

Test 20

Verdict:

input
44073
1
2
3
4
...

correct output
Not a proof

user output
Cheater

Test 21

Verdict: ACCEPTED

input
83617
33109
61789
74135
12472
...

correct output
Cheater

user output
Cheater

Test 22

Verdict:

input
84621
16
26
25
27
...

correct output
Not a proof

user output
Cheater

Test 23

Verdict: ACCEPTED

input
22135
2433
19568
20163
15126
...

correct output
Cheater

user output
Cheater

Test 24

Verdict:

input
79341
1
4
6
5
...

correct output
Not a proof

user output
Cheater

Test 25

Verdict: ACCEPTED

input
17175
13977
4200
33
13602
...

correct output
Cheater

user output
Cheater

Test 26

Verdict:

input
64285
1
2
3
4
...

correct output
Not a proof

user output
Cheater

Test 27

Verdict: ACCEPTED

input
68694
36114
50054
48015
41971
...

correct output
Cheater

user output
Cheater

Test 28

Verdict:

input
3056
14
15
24
57
...

correct output
Not a proof

user output
Cheater

Test 29

Verdict: ACCEPTED

input
96187
84426
32403
60210
35133
...

correct output
Cheater

user output
Cheater

Test 30

Verdict:

input
41500
1
2
3
6
...

correct output
Not a proof

user output
Cheater