Task: | Scorpion and frogs |
Sender: | aalto2024a_012 |
Submission time: | 2024-09-04 16:43:23 +0300 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.02 s | details |
#2 | ACCEPTED | 0.02 s | details |
#3 | ACCEPTED | 0.02 s | details |
#4 | ACCEPTED | 0.02 s | details |
#5 | ACCEPTED | 0.02 s | details |
#6 | ACCEPTED | 0.02 s | details |
#7 | ACCEPTED | 0.02 s | details |
#8 | ACCEPTED | 0.02 s | details |
#9 | ACCEPTED | 0.02 s | details |
#10 | ACCEPTED | 0.02 s | details |
#11 | ACCEPTED | 0.02 s | details |
#12 | ACCEPTED | 0.02 s | details |
#13 | ACCEPTED | 0.02 s | details |
#14 | ACCEPTED | 0.02 s | details |
#15 | ACCEPTED | 0.02 s | details |
#16 | ACCEPTED | 0.02 s | details |
#17 | ACCEPTED | 0.02 s | details |
#18 | ACCEPTED | 0.02 s | details |
#19 | ACCEPTED | 0.02 s | details |
#20 | ACCEPTED | 0.02 s | details |
#21 | ACCEPTED | 0.02 s | details |
#22 | ACCEPTED | 0.02 s | details |
#23 | WRONG ANSWER | 0.02 s | details |
#24 | WRONG ANSWER | 0.02 s | details |
#25 | WRONG ANSWER | 0.02 s | details |
#26 | WRONG ANSWER | 0.02 s | details |
#27 | WRONG ANSWER | 0.02 s | details |
#28 | WRONG ANSWER | 0.02 s | details |
#29 | WRONG ANSWER | 0.02 s | details |
#30 | WRONG ANSWER | 0.03 s | details |
#31 | WRONG ANSWER | 0.04 s | details |
#32 | WRONG ANSWER | 0.05 s | details |
#33 | WRONG ANSWER | 0.06 s | details |
#34 | WRONG ANSWER | 0.08 s | details |
#35 | WRONG ANSWER | 0.10 s | details |
#36 | WRONG ANSWER | 0.13 s | details |
#37 | WRONG ANSWER | 0.15 s | details |
#38 | RUNTIME ERROR | 0.02 s | details |
#39 | RUNTIME ERROR | 0.02 s | details |
#40 | RUNTIME ERROR | 0.02 s | details |
#41 | RUNTIME ERROR | 0.02 s | details |
#42 | RUNTIME ERROR | 0.02 s | details |
#43 | RUNTIME ERROR | 0.02 s | details |
#44 | RUNTIME ERROR | 0.02 s | details |
#45 | RUNTIME ERROR | 0.02 s | details |
#46 | RUNTIME ERROR | 0.02 s | details |
#47 | RUNTIME ERROR | 0.02 s | details |
#48 | RUNTIME ERROR | 0.02 s | details |
#49 | RUNTIME ERROR | 0.02 s | details |
#50 | RUNTIME ERROR | 0.02 s | details |
#51 | RUNTIME ERROR | 0.02 s | details |
#52 | RUNTIME ERROR | 0.02 s | details |
#53 | RUNTIME ERROR | 0.02 s | details |
#54 | RUNTIME ERROR | 0.03 s | details |
#55 | RUNTIME ERROR | 0.02 s | details |
Code
store = {} def intermediate(k: int) -> int: # scorpion is on position k # k+1 is unavailable # there are in total n frogs if k in store: return store[k] count = 1 # jump to X for q in range(k+2, N): count += intermediate(q) store[k] = count return count def start() -> int: count = 1 # jump directly to X for k in range(N): j = intermediate(k) count += j # jump to k return count N = int(input("")) store[N-1] = 1 output = start() print(output)
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 |
correct output |
---|
2 |
user output |
---|
2 |
Test 2
Verdict: ACCEPTED
input |
---|
2 |
correct output |
---|
3 |
user output |
---|
3 |
Test 3
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
5 |
user output |
---|
5 |
Test 4
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
8 |
user output |
---|
8 |
Test 5
Verdict: ACCEPTED
input |
---|
5 |
correct output |
---|
13 |
user output |
---|
13 |
Test 6
Verdict: ACCEPTED
input |
---|
6 |
correct output |
---|
21 |
user output |
---|
21 |
Test 7
Verdict: ACCEPTED
input |
---|
7 |
correct output |
---|
34 |
user output |
---|
34 |
Test 8
Verdict: ACCEPTED
input |
---|
8 |
correct output |
---|
55 |
user output |
---|
55 |
Test 9
Verdict: ACCEPTED
input |
---|
9 |
correct output |
---|
89 |
user output |
---|
89 |
Test 10
Verdict: ACCEPTED
input |
---|
10 |
correct output |
---|
144 |
user output |
---|
144 |
Test 11
Verdict: ACCEPTED
input |
---|
11 |
correct output |
---|
233 |
user output |
---|
233 |
Test 12
Verdict: ACCEPTED
input |
---|
12 |
correct output |
---|
377 |
user output |
---|
377 |
Test 13
Verdict: ACCEPTED
input |
---|
13 |
correct output |
---|
610 |
user output |
---|
610 |
Test 14
Verdict: ACCEPTED
input |
---|
14 |
correct output |
---|
987 |
user output |
---|
987 |
Test 15
Verdict: ACCEPTED
input |
---|
15 |
correct output |
---|
1597 |
user output |
---|
1597 |
Test 16
Verdict: ACCEPTED
input |
---|
16 |
correct output |
---|
2584 |
user output |
---|
2584 |
Test 17
Verdict: ACCEPTED
input |
---|
17 |
correct output |
---|
4181 |
user output |
---|
4181 |
Test 18
Verdict: ACCEPTED
input |
---|
18 |
correct output |
---|
6765 |
user output |
---|
6765 |
Test 19
Verdict: ACCEPTED
input |
---|
19 |
correct output |
---|
10946 |
user output |
---|
10946 |
Test 20
Verdict: ACCEPTED
input |
---|
20 |
correct output |
---|
17711 |
user output |
---|
17711 |
Test 21
Verdict: ACCEPTED
input |
---|
30 |
correct output |
---|
2178309 |
user output |
---|
2178309 |
Test 22
Verdict: ACCEPTED
input |
---|
40 |
correct output |
---|
267914296 |
user output |
---|
267914296 |
Test 23
Verdict: WRONG ANSWER
input |
---|
50 |
correct output |
---|
9216450 |
user output |
---|
32951280099 |
Test 24
Verdict: WRONG ANSWER
input |
---|
60 |
correct output |
---|
865709054 |
user output |
---|
4052739537881 |
Test 25
Verdict: WRONG ANSWER
input |
---|
70 |
correct output |
---|
659095774 |
user output |
---|
498454011879264 |
Test 26
Verdict: WRONG ANSWER
input |
---|
80 |
correct output |
---|
343522908 |
user output |
---|
61305790721611591 |
Test 27
Verdict: WRONG ANSWER
input |
---|
90 |
correct output |
---|
666203437 |
user output |
---|
7540113804746346429 |
Test 28
Verdict: WRONG ANSWER
input |
---|
100 |
correct output |
---|
741707250 |
user output |
---|
927372692193078999176 |
Test 29
Verdict: WRONG ANSWER
input |
---|
200 |
correct output |
---|
319277240 |
user output |
---|
734544867157818093234908902110... |
Test 30
Verdict: WRONG ANSWER
input |
---|
300 |
correct output |
---|
12089690 |
user output |
---|
581811569836004006491505558634... |
Test 31
Verdict: WRONG ANSWER
input |
---|
400 |
correct output |
---|
356073916 |
user output |
---|
460835978753503578226215883073... |
Test 32
Verdict: WRONG ANSWER
input |
---|
500 |
correct output |
---|
831535149 |
user output |
---|
365014740723634211012237077906... Truncated |
Test 33
Verdict: WRONG ANSWER
input |
---|
600 |
correct output |
---|
627858041 |
user output |
---|
289117532242004794657842939580... Truncated |
Test 34
Verdict: WRONG ANSWER
input |
---|
700 |
correct output |
---|
894762479 |
user output |
---|
229001566577813580993328050559... Truncated |
Test 35
Verdict: WRONG ANSWER
input |
---|
800 |
correct output |
---|
695610340 |
user output |
---|
181385463165881736890212208885... Truncated |
Test 36
Verdict: WRONG ANSWER
input |
---|
900 |
correct output |
---|
120428339 |
user output |
---|
143670136146085937583931190859... Truncated |
Test 37
Verdict: WRONG ANSWER
input |
---|
1000 |
correct output |
---|
506723686 |
user output |
---|
113796925398360272257523782552... Truncated |
Test 38
Verdict: RUNTIME ERROR
input |
---|
2000 |
correct output |
---|
118272245 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 39
Verdict: RUNTIME ERROR
input |
---|
3000 |
correct output |
---|
50602578 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 40
Verdict: RUNTIME ERROR
input |
---|
4000 |
correct output |
---|
38687300 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 41
Verdict: RUNTIME ERROR
input |
---|
5000 |
correct output |
---|
644069919 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 42
Verdict: RUNTIME ERROR
input |
---|
6000 |
correct output |
---|
905964874 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 43
Verdict: RUNTIME ERROR
input |
---|
7000 |
correct output |
---|
917351342 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 44
Verdict: RUNTIME ERROR
input |
---|
8000 |
correct output |
---|
606465604 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 45
Verdict: RUNTIME ERROR
input |
---|
9000 |
correct output |
---|
676429656 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 46
Verdict: RUNTIME ERROR
input |
---|
10000 |
correct output |
---|
634342956 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 47
Verdict: RUNTIME ERROR
input |
---|
20000 |
correct output |
---|
215568895 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 48
Verdict: RUNTIME ERROR
input |
---|
30000 |
correct output |
---|
54808147 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 49
Verdict: RUNTIME ERROR
input |
---|
40000 |
correct output |
---|
242971895 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 50
Verdict: RUNTIME ERROR
input |
---|
50000 |
correct output |
---|
575576968 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 51
Verdict: RUNTIME ERROR
input |
---|
60000 |
correct output |
---|
923159168 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 52
Verdict: RUNTIME ERROR
input |
---|
70000 |
correct output |
---|
621454924 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 53
Verdict: RUNTIME ERROR
input |
---|
80000 |
correct output |
---|
562709198 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 54
Verdict: RUNTIME ERROR
input |
---|
90000 |
correct output |
---|
389404104 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...
Test 55
Verdict: RUNTIME ERROR
input |
---|
100000 |
correct output |
---|
66655788 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 28, in <module> o...