結果
| 問題 |
No.2558 中国剰余定理
|
| コンテスト | |
| ユーザー |
Suchmos
|
| 提出日時 | 2024-12-27 20:18:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 118 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-27 20:18:41 |
| 合計ジャッジ時間 | 2,562 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
A,B,a,b=map(int,input().split())
n=a
while True:
if n%B==b:
print(n)
exit()
else:
n+=A
Suchmos