結果

問題 No.1819 Mirrored 2
ユーザー tatyamtatyam
提出日時 2022-01-21 22:07:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 74,368 KB
最終ジャッジ日時 2024-11-26 04:39:46
合計ジャッジ時間 2,855 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

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