結果

問題 No.1819 Mirrored 2
ユーザー 👑 tatyamtatyam
提出日時 2022-01-21 22:07:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 74,368 KB
最終ジャッジ日時 2024-05-04 16:11:09
合計ジャッジ時間 2,951 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,840 KB
testcase_01 AC 54 ms
64,256 KB
testcase_02 AC 61 ms
71,808 KB
testcase_03 AC 57 ms
67,712 KB
testcase_04 AC 51 ms
63,104 KB
testcase_05 AC 62 ms
67,584 KB
testcase_06 AC 67 ms
73,472 KB
testcase_07 AC 64 ms
70,528 KB
testcase_08 AC 67 ms
72,704 KB
testcase_09 AC 58 ms
62,720 KB
testcase_10 AC 69 ms
73,600 KB
testcase_11 AC 59 ms
66,176 KB
testcase_12 AC 64 ms
70,016 KB
testcase_13 AC 62 ms
68,480 KB
testcase_14 AC 60 ms
74,240 KB
testcase_15 AC 50 ms
63,744 KB
testcase_16 AC 54 ms
65,920 KB
testcase_17 AC 59 ms
70,912 KB
testcase_18 AC 54 ms
66,816 KB
testcase_19 AC 60 ms
67,072 KB
testcase_20 AC 53 ms
62,592 KB
testcase_21 AC 55 ms
62,336 KB
testcase_22 AC 60 ms
68,224 KB
testcase_23 AC 59 ms
66,176 KB
testcase_24 AC 55 ms
69,888 KB
testcase_25 AC 55 ms
66,560 KB
testcase_26 AC 62 ms
74,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P, Q, x, y = map(int, input().split())
P = 90007
for i in range(1 << 30):
    N = str(y + i * Q)[::-1]
    if N[0] == '0':
        continue
    N = int(N)
    if N % P == 0:
        continue
    print(N, end="")
    N %= P
    break
while N != x:
    print("0", end="")
    N *= 10
    N %= P
print()
0