33342023-02-25 20:33:034bs0lute0Gergő és a sárkánypython3Wrong answer 11/10017ms14100 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, end="")
else:
    print(p1, p2, end="")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11204 KiB
2Accepted17ms11176 KiB
subtask20/8
3Accepted17ms11516 KiB
4Accepted17ms11620 KiB
5Wrong answer17ms11904 KiB
6Accepted17ms11620 KiB
subtask30/16
7Accepted17ms12140 KiB
8Wrong answer17ms12352 KiB
9Accepted17ms12452 KiB
10Accepted17ms12704 KiB
11Accepted17ms12832 KiB
subtask40/7
12Wrong answer17ms13420 KiB
13Accepted17ms13512 KiB
14Accepted17ms13212 KiB
subtask511/11
15Accepted17ms13532 KiB
16Accepted17ms13328 KiB
17Accepted17ms13628 KiB
18Accepted17ms13940 KiB
subtask60/58
19Accepted17ms13928 KiB
20Wrong answer17ms14100 KiB
21Accepted17ms13936 KiB
22Accepted17ms13916 KiB
23Accepted17ms14064 KiB
24Accepted17ms13964 KiB
25Accepted17ms13864 KiB
26Accepted17ms13852 KiB