3325 | 2023-02-25 19:38:06 | 4bs0lute0 | Gergő és a sárkány | python3 | Runtime error 0/100 | 18ms | 13632 KiB |
N = input()
D = input()
p2 = D
p1 = D
while not (p1 >= 10**(N-1) and p2 >= 10**(N-1)):
p0 = p1 + p2
p2 = p0 + p1
p1 = p2 + p0
if p1 == p2:
print(0, 0)
else:
print(p1, p2)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 17ms | 10920 KiB | ||||
2 | Runtime error | 17ms | 11224 KiB | ||||
subtask2 | 0/8 | ||||||
3 | Runtime error | 17ms | 11300 KiB | ||||
4 | Runtime error | 17ms | 11424 KiB | ||||
5 | Runtime error | 17ms | 11924 KiB | ||||
6 | Runtime error | 17ms | 12144 KiB | ||||
subtask3 | 0/16 | ||||||
7 | Runtime error | 17ms | 12396 KiB | ||||
8 | Runtime error | 17ms | 12496 KiB | ||||
9 | Runtime error | 17ms | 12516 KiB | ||||
10 | Runtime error | 17ms | 12308 KiB | ||||
11 | Runtime error | 17ms | 12436 KiB | ||||
subtask4 | 0/7 | ||||||
12 | Runtime error | 17ms | 12712 KiB | ||||
13 | Runtime error | 17ms | 12764 KiB | ||||
14 | Runtime error | 17ms | 12728 KiB | ||||
subtask5 | 0/11 | ||||||
15 | Runtime error | 18ms | 12884 KiB | ||||
16 | Runtime error | 17ms | 13072 KiB | ||||
17 | Runtime error | 17ms | 13112 KiB | ||||
18 | Runtime error | 17ms | 13028 KiB | ||||
subtask6 | 0/58 | ||||||
19 | Runtime error | 17ms | 13364 KiB | ||||
20 | Runtime error | 17ms | 13632 KiB | ||||
21 | Runtime error | 17ms | 13044 KiB | ||||
22 | Runtime error | 18ms | 13396 KiB | ||||
23 | Runtime error | 17ms | 13376 KiB | ||||
24 | Runtime error | 17ms | 13480 KiB | ||||
25 | Runtime error | 17ms | 13228 KiB | ||||
26 | Runtime error | 17ms | 13580 KiB |