33312023-02-25 20:11:314bs0lute0Gergő és a sárkánypypy3Wrong answer 11/10050ms78964 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
1Accepted46ms76484 KiB
2Accepted48ms76856 KiB
subtask20/8
3Accepted46ms77176 KiB
4Accepted46ms77476 KiB
5Wrong answer50ms77304 KiB
6Accepted46ms77400 KiB
subtask30/16
7Accepted43ms77740 KiB
8Wrong answer50ms77648 KiB
9Accepted46ms77756 KiB
10Accepted46ms77908 KiB
11Accepted48ms77972 KiB
subtask40/7
12Wrong answer46ms78368 KiB
13Accepted46ms78336 KiB
14Accepted46ms78508 KiB
subtask511/11
15Accepted46ms78344 KiB
16Accepted46ms78432 KiB
17Accepted48ms78728 KiB
18Accepted46ms78644 KiB
subtask60/58
19Accepted46ms78532 KiB
20Wrong answer48ms78736 KiB
21Accepted48ms78964 KiB
22Accepted48ms78836 KiB
23Accepted48ms78580 KiB
24Accepted46ms78664 KiB
25Accepted46ms78836 KiB
26Accepted46ms78608 KiB