結果
| 問題 |
No.2781 A%B問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-14 21:34:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 58,800 KB |
| 最終ジャッジ日時 | 2024-06-14 21:34:30 |
| 合計ジャッジ時間 | 1,837 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
A,B=list(map(int,input().split()))
for q in range(-int(1e2), int(1e2)+1):
if B>0 and q==0:continue
for r in range(abs(B)+1):
if A==B*q+r:
print(r)
exit(0)