91882024-02-17 19:14:26NagyLeoA sárkány feladványa (50)python3Wrong answer 6/50300ms12436 KiB
from math import gcd

def main():
    for _ in range(3):
        A, B, N = map(int, input().split())

        for i in range(10**(N-1), 10**(N+2)):
            if i % A == 0 and i % B == 0:
                print(i)
                break


main()

SubtaskSumTestVerdictTimeMemory
base6/50
1Wrong answer0/017ms11168 KiB
2Time limit exceeded0/0300ms3944 KiB
3Accepted3/317ms11496 KiB
4Wrong answer0/321ms12164 KiB
5Accepted3/317ms12092 KiB
6Wrong answer0/320ms12436 KiB
7Wrong answer0/317ms12328 KiB
8Time limit exceeded0/3268ms5080 KiB
9Time limit exceeded0/3275ms5304 KiB
10Time limit exceeded0/3266ms5300 KiB
11Time limit exceeded0/3256ms5196 KiB
12Time limit exceeded0/3279ms5516 KiB
13Time limit exceeded0/4268ms5380 KiB
14Time limit exceeded0/4275ms5464 KiB
15Time limit exceeded0/4284ms5476 KiB
16Time limit exceeded0/4266ms5416 KiB
17Time limit exceeded0/4244ms5396 KiB