33252023-02-25 19:38:064bs0lute0Gergő és a sárkánypython3Runtime error 0/10018ms13632 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)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms10920 KiB
2Runtime error17ms11224 KiB
subtask20/8
3Runtime error17ms11300 KiB
4Runtime error17ms11424 KiB
5Runtime error17ms11924 KiB
6Runtime error17ms12144 KiB
subtask30/16
7Runtime error17ms12396 KiB
8Runtime error17ms12496 KiB
9Runtime error17ms12516 KiB
10Runtime error17ms12308 KiB
11Runtime error17ms12436 KiB
subtask40/7
12Runtime error17ms12712 KiB
13Runtime error17ms12764 KiB
14Runtime error17ms12728 KiB
subtask50/11
15Runtime error18ms12884 KiB
16Runtime error17ms13072 KiB
17Runtime error17ms13112 KiB
18Runtime error17ms13028 KiB
subtask60/58
19Runtime error17ms13364 KiB
20Runtime error17ms13632 KiB
21Runtime error17ms13044 KiB
22Runtime error18ms13396 KiB
23Runtime error17ms13376 KiB
24Runtime error17ms13480 KiB
25Runtime error17ms13228 KiB
26Runtime error17ms13580 KiB