結果
| 問題 | No.2558 中国剰余定理 |
| コンテスト | |
| ユーザー |
liny_tail
|
| 提出日時 | 2024-08-13 17:15:50 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 1,603 ms / 2,000 ms |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-03 21:05:09 |
| 合計ジャッジ時間 | 10,498 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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