結果
| 問題 | No.2558 中国剰余定理 |
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2023-12-02 14:34:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 142 bytes |
| 記録 | |
| コンパイル時間 | 475 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-13 18:41:46 |
| 合計ジャッジ時間 | 49,808 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 TLE * 3 |
ソースコード
A,B,a,b = map(int, input().split())
ans = float("inf")
for x in range(10**7+1):
if x%A==a and x%B==b:
ans = min(ans, x)
print(ans)
Cecil