結果
| 問題 | No.2117 中国剰余定理入門 |
| ユーザー |
|
| 提出日時 | 2022-11-04 21:26:14 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 38 ms / 2,000 ms |
| + 215µs | |
| コード長 | 265 bytes |
| 記録 | |
| コンパイル時間 | 742 ms |
| コンパイル使用メモリ | 64,840 KB |
| 実行使用メモリ | 57,988 KB |
| 最終ジャッジ日時 | 2026-10-24 22:18:13 |
| 合計ジャッジ時間 | 2,454 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
a,b = map(int,input().split())
c,d = map(int,input().split())
s = b % a
t = d % c
check = 0
for i in range(1000):
for j in range(1000):
if s + a*i == t + c*j:
print(s+a*i)
check = 1
exit()
if s + a*i < t + c*j:
break
print('NaN')