結果

問題 No.2558 中国剰余定理
ユーザー naut3
提出日時 2023-12-02 19:55:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,403 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-09-26 21:34:30
合計ジャッジ時間 7,300 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, a, b = map(int, input().split())

for x in range(0, 3000 * 3000):
    if x % A == a and x % B == b:
        print(x)
        exit()
0