33242023-02-25 19:36:154bs0lute0Gergő és a sárkánypython3Wrong answer 0/10017ms13744 KiB
N = 3
D = 23
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
1Wrong answer17ms10856 KiB
2Wrong answer17ms11000 KiB
subtask20/8
3Wrong answer17ms11112 KiB
4Wrong answer17ms11452 KiB
5Wrong answer17ms11840 KiB
6Wrong answer17ms11896 KiB
subtask30/16
7Wrong answer17ms11872 KiB
8Wrong answer17ms12244 KiB
9Wrong answer17ms12764 KiB
10Wrong answer17ms12784 KiB
11Wrong answer17ms12624 KiB
subtask40/7
12Wrong answer17ms12852 KiB
13Wrong answer17ms12812 KiB
14Wrong answer17ms12660 KiB
subtask50/11
15Wrong answer17ms12856 KiB
16Wrong answer17ms13024 KiB
17Wrong answer17ms13412 KiB
18Wrong answer17ms13496 KiB
subtask60/58
19Wrong answer17ms13588 KiB
20Wrong answer17ms13508 KiB
21Wrong answer17ms13580 KiB
22Wrong answer17ms13588 KiB
23Wrong answer17ms13688 KiB
24Wrong answer17ms13688 KiB
25Wrong answer17ms13744 KiB
26Wrong answer17ms13532 KiB