結果

問題 No.2117 中国剰余定理入門
ユーザー 👑 KazunKazun
提出日時 2022-11-04 21:25:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 1,111 ms
コンパイル使用メモリ 86,488 KB
実行使用メモリ 75,544 KB
最終ジャッジ日時 2023-09-25 23:38:12
合計ジャッジ時間 2,926 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,248 KB
testcase_01 AC 70 ms
70,992 KB
testcase_02 AC 71 ms
71,092 KB
testcase_03 AC 69 ms
71,160 KB
testcase_04 AC 69 ms
71,164 KB
testcase_05 AC 76 ms
75,508 KB
testcase_06 AC 72 ms
71,164 KB
testcase_07 AC 74 ms
75,404 KB
testcase_08 AC 74 ms
75,544 KB
testcase_09 AC 74 ms
71,296 KB
testcase_10 AC 70 ms
71,288 KB
testcase_11 AC 71 ms
70,976 KB
testcase_12 AC 75 ms
75,528 KB
testcase_13 AC 71 ms
75,396 KB
testcase_14 AC 74 ms
75,440 KB
testcase_15 AC 73 ms
75,520 KB
testcase_16 AC 74 ms
75,476 KB
testcase_17 AC 74 ms
75,456 KB
testcase_18 AC 73 ms
75,448 KB
testcase_19 AC 74 ms
71,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

B1,C1=map(int,input().split())
B2,C2=map(int,input().split())

for n in range(100000):
    if (n-C1)%B1==0 and (n-C2)%B2==0:
        exit(print(n))
print("NaN")
0