結果
| 問題 |
No.2558 中国剰余定理
|
| コンテスト | |
| ユーザー |
liny_tail
|
| 提出日時 | 2024-08-13 17:16:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 2,000 ms |
| コード長 | 156 bytes |
| コンパイル時間 | 498 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 58,368 KB |
| 最終ジャッジ日時 | 2024-08-13 17:16:35 |
| 合計ジャッジ時間 | 3,106 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
A, B, a, b = map(int, input().split(' '))
x = 0
while True:
if x % A == a and x % B == b:
break
x += 1
if x > A*B:
x = 0
break
print(x)
liny_tail