CSES - Aalto Competitive Programming 2024 - wk12 - Wed - Results
Submission details
Task:Counter
Sender:esya_rae
Submission time:2024-11-27 17:50:02 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.05 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.04 sdetails
#140.04 sdetails
#150.04 sdetails
#160.04 sdetails
#170.04 sdetails
#180.04 sdetails
#190.04 sdetails
#200.04 sdetails
#210.04 sdetails
#220.04 sdetails
#230.04 sdetails
#240.04 sdetails
#250.04 sdetails
#260.04 sdetails
#270.04 sdetails

Code

import sys
sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline

n = int(input())
for n in range(100):
    print(n)
    if n % 11 == 0:
        print(n // 11)
    else:
        if (n % 11) % 2 == 0:
            a = n // 11 + 2
            b = a * 11 - n
        else:
            a = n // 11 + 1
            b = a * 11 - n
        if b > n // 11 * 11:
            print(-1)
        else:
            print(a + b // 2)

Test details

Test 1

Verdict: ACCEPTED

input
0

correct output
0

user output
0
0
1
-1
2
...
Truncated

Test 2

Verdict:

input
1

correct output
-1

user output
0
0
1
-1
2
...
Truncated

Test 3

Verdict:

input
2

correct output
-1

user output
0
0
1
-1
2
...
Truncated

Test 4

Verdict:

input
10

correct output
-1

user output
0
0
1
-1
2
...
Truncated

Test 5

Verdict:

input
11

correct output
1

user output
0
0
1
-1
2
...
Truncated

Test 6

Verdict:

input
23

correct output
8

user output
0
0
1
-1
2
...
Truncated

Test 7

Verdict:

input
90

correct output
20

user output
0
0
1
-1
2
...
Truncated

Test 8

Verdict:

input
8

correct output
-1

user output
0
0
1
-1
2
...
Truncated

Test 9

Verdict:

input
88

correct output
8

user output
0
0
1
-1
2
...
Truncated

Test 10

Verdict:

input
2

correct output
-1

user output
0
0
1
-1
2
...
Truncated

Test 11

Verdict:

input
62

correct output
8

user output
0
0
1
-1
2
...
Truncated

Test 12

Verdict:

input
53

correct output
6

user output
0
0
1
-1
2
...
Truncated

Test 13

Verdict:

input
55

correct output
5

user output
0
0
1
-1
2
...
Truncated

Test 14

Verdict:

input
84

correct output
10

user output
0
0
1
-1
2
...
Truncated

Test 15

Verdict:

input
72

correct output
16

user output
0
0
1
-1
2
...
Truncated

Test 16

Verdict:

input
71

correct output
10

user output
0
0
1
-1
2
...
Truncated

Test 17

Verdict:

input
16

correct output
5

user output
0
0
1
-1
2
...
Truncated

Test 18

Verdict:

input
86

correct output
9

user output
0
0
1
-1
2
...
Truncated

Test 19

Verdict:

input
81

correct output
18

user output
0
0
1
-1
2
...
Truncated

Test 20

Verdict:

input
19

correct output
10

user output
0
0
1
-1
2
...
Truncated

Test 21

Verdict:

input
21

correct output
9

user output
0
0
1
-1
2
...
Truncated

Test 22

Verdict:

input
249

correct output
25

user output
0
0
1
-1
2
...
Truncated

Test 23

Verdict:

input
835

correct output
83

user output
0
0
1
-1
2
...
Truncated

Test 24

Verdict:

input
94

correct output
18

user output
0
0
1
-1
2
...
Truncated

Test 25

Verdict:

input
10000

correct output
915

user output
0
0
1
-1
2
...
Truncated

Test 26

Verdict:

input
100000

correct output
9098

user output
0
0
1
-1
2
...
Truncated

Test 27

Verdict:

input
1000000

correct output
90915

user output
0
0
1
-1
2
...
Truncated