結果
| 問題 | No.2624 Prediction by Average |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-02-09 22:12:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 265 bytes |
| 記録 | |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 85,172 KB |
| 実行使用メモリ | 67,672 KB |
| 最終ジャッジ日時 | 2026-04-15 05:17:25 |
| 合計ジャッジ時間 | 1,077 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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