結果

問題 No.1819 Mirrored 2
ユーザー 👑 tatyamtatyam
提出日時 2022-01-21 22:07:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 78,480 KB
最終ジャッジ日時 2023-08-17 09:19:42
合計ジャッジ時間 4,272 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,252 KB
testcase_01 AC 87 ms
76,876 KB
testcase_02 AC 89 ms
77,696 KB
testcase_03 AC 84 ms
77,224 KB
testcase_04 AC 85 ms
76,592 KB
testcase_05 AC 85 ms
77,152 KB
testcase_06 AC 90 ms
77,912 KB
testcase_07 AC 87 ms
77,284 KB
testcase_08 AC 87 ms
77,848 KB
testcase_09 AC 86 ms
76,364 KB
testcase_10 AC 91 ms
77,712 KB
testcase_11 AC 86 ms
76,844 KB
testcase_12 AC 84 ms
77,620 KB
testcase_13 AC 84 ms
77,216 KB
testcase_14 AC 90 ms
78,388 KB
testcase_15 AC 85 ms
76,724 KB
testcase_16 AC 84 ms
77,068 KB
testcase_17 AC 87 ms
77,304 KB
testcase_18 AC 84 ms
76,940 KB
testcase_19 AC 84 ms
76,972 KB
testcase_20 AC 83 ms
76,664 KB
testcase_21 AC 81 ms
76,672 KB
testcase_22 AC 84 ms
77,024 KB
testcase_23 AC 87 ms
76,736 KB
testcase_24 AC 88 ms
77,492 KB
testcase_25 AC 91 ms
77,256 KB
testcase_26 AC 98 ms
78,480 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