結果

問題 No.2558 中国剰余定理
ユーザー kusirakusirakusirakusira
提出日時 2023-09-19 15:32:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 713 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 75,820 KB
最終ジャッジ日時 2023-09-19 15:32:40
合計ジャッジ時間 4,726 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,276 KB
testcase_01 AC 73 ms
71,388 KB
testcase_02 AC 91 ms
75,744 KB
testcase_03 AC 73 ms
71,568 KB
testcase_04 AC 97 ms
75,684 KB
testcase_05 AC 71 ms
71,444 KB
testcase_06 AC 71 ms
71,216 KB
testcase_07 AC 72 ms
71,308 KB
testcase_08 AC 81 ms
75,776 KB
testcase_09 AC 76 ms
75,820 KB
testcase_10 AC 77 ms
75,780 KB
testcase_11 AC 79 ms
75,576 KB
testcase_12 AC 76 ms
75,596 KB
testcase_13 AC 77 ms
75,768 KB
testcase_14 AC 85 ms
75,776 KB
testcase_15 AC 74 ms
75,672 KB
testcase_16 AC 81 ms
75,720 KB
testcase_17 AC 76 ms
75,748 KB
testcase_18 AC 82 ms
75,776 KB
testcase_19 AC 83 ms
75,596 KB
testcase_20 AC 76 ms
75,744 KB
testcase_21 AC 80 ms
75,640 KB
testcase_22 AC 77 ms
75,776 KB
testcase_23 AC 81 ms
75,660 KB
testcase_24 AC 85 ms
75,684 KB
testcase_25 AC 83 ms
75,656 KB
testcase_26 AC 86 ms
75,732 KB
testcase_27 AC 76 ms
75,576 KB
testcase_28 AC 79 ms
75,644 KB
testcase_29 AC 76 ms
75,628 KB
testcase_30 AC 77 ms
75,772 KB
testcase_31 AC 78 ms
75,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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