結果
| 問題 |
No.2624 Prediction by Average
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-02-09 22:12:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 265 bytes |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 82,356 KB |
| 実行使用メモリ | 68,008 KB |
| 最終ジャッジ日時 | 2024-09-28 15:27:14 |
| 合計ジャッジ時間 | 1,002 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 4 |
ソースコード
T = int(input())
for _ in range(T):
N, S = input().split()
_, s = S.split(".")
N, s = int(N), float(s)
if s < 0.0001:
print(N)
continue
v = int(1000/s)
if abs(1000 - v * s) > 10:
print(0)
else:
print(N//v)
rlangevin