33292023-02-25 19:50:134bs0lute0Gergő és a sárkánypython3Wrong answer 11/10017ms14480 KiB
N = int(input())
D = int(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
1Accepted17ms11000 KiB
2Accepted17ms11200 KiB
subtask20/8
3Accepted17ms11380 KiB
4Accepted17ms11648 KiB
5Wrong answer17ms11452 KiB
6Accepted17ms11860 KiB
subtask30/16
7Accepted17ms11736 KiB
8Wrong answer17ms12000 KiB
9Accepted17ms12020 KiB
10Accepted17ms11856 KiB
11Accepted17ms11836 KiB
subtask40/7
12Wrong answer17ms12308 KiB
13Accepted17ms12344 KiB
14Accepted17ms12812 KiB
subtask511/11
15Accepted17ms12972 KiB
16Accepted17ms13004 KiB
17Accepted17ms13272 KiB
18Accepted17ms13464 KiB
subtask60/58
19Accepted17ms13420 KiB
20Wrong answer17ms13484 KiB
21Accepted17ms13564 KiB
22Accepted17ms13792 KiB
23Accepted17ms14084 KiB
24Accepted17ms14268 KiB
25Accepted17ms14188 KiB
26Accepted17ms14480 KiB