結果

問題 No.2558 中国剰余定理
ユーザー poeMoon
提出日時 2023-12-02 17:29:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2024-09-26 21:13:43
合計ジャッジ時間 2,532 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, a, b = map(int, input().split())
x = 0
while True:
    if x % A == a and x % B == b:
        break
    else:
        x += 1
print(x)
0