41492023-03-15 15:02:19kristofA sárkány feladványa (50)python3Wrong answer 0/5057ms13520 KiB
D, P, N = map(int, input().split())
szam = D*P
maradek = 0
asd = 0

outlist = []

while szam <= 10**(N) and asd != 2:
    tempszam = szam
    szam = szam+maradek
    maradek = tempszam
    if szam >= 10**(N-1) and szam < 10**N:
        print(szam)
        break
else:
    print(-1)
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/017ms10768 KiB
2Wrong answer0/017ms11252 KiB
3Wrong answer0/317ms11548 KiB
4Wrong answer0/317ms11716 KiB
5Wrong answer0/317ms11960 KiB
6Wrong answer0/317ms12164 KiB
7Wrong answer0/317ms12364 KiB
8Wrong answer0/317ms12468 KiB
9Wrong answer0/317ms12044 KiB
10Wrong answer0/317ms12704 KiB
11Wrong answer0/317ms13004 KiB
12Wrong answer0/317ms13088 KiB
13Wrong answer0/417ms13084 KiB
14Wrong answer0/427ms13128 KiB
15Wrong answer0/417ms13476 KiB
16Wrong answer0/457ms13460 KiB
17Wrong answer0/452ms13520 KiB