結果

問題 No.2558 中国剰余定理
ユーザー detteiuudetteiuu
提出日時 2024-11-28 22:37:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 82,024 KB
実行使用メモリ 59,448 KB
最終ジャッジ日時 2024-11-28 22:37:41
合計ジャッジ時間 3,379 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,488 KB
testcase_01 AC 33 ms
52,380 KB
testcase_02 AC 40 ms
58,796 KB
testcase_03 AC 33 ms
52,336 KB
testcase_04 AC 53 ms
58,584 KB
testcase_05 AC 34 ms
52,488 KB
testcase_06 AC 32 ms
52,492 KB
testcase_07 AC 33 ms
53,104 KB
testcase_08 AC 39 ms
59,124 KB
testcase_09 AC 36 ms
59,428 KB
testcase_10 AC 37 ms
59,448 KB
testcase_11 AC 38 ms
57,720 KB
testcase_12 AC 35 ms
59,304 KB
testcase_13 AC 36 ms
58,364 KB
testcase_14 AC 36 ms
58,908 KB
testcase_15 AC 36 ms
58,384 KB
testcase_16 AC 40 ms
58,116 KB
testcase_17 AC 34 ms
58,668 KB
testcase_18 AC 40 ms
58,368 KB
testcase_19 AC 42 ms
58,000 KB
testcase_20 AC 36 ms
59,432 KB
testcase_21 AC 47 ms
58,108 KB
testcase_22 AC 34 ms
58,068 KB
testcase_23 AC 35 ms
58,008 KB
testcase_24 AC 40 ms
58,688 KB
testcase_25 AC 41 ms
58,476 KB
testcase_26 AC 36 ms
58,312 KB
testcase_27 AC 35 ms
57,984 KB
testcase_28 AC 38 ms
57,796 KB
testcase_29 AC 35 ms
58,608 KB
testcase_30 AC 38 ms
58,068 KB
testcase_31 AC 37 ms
58,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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