結果
問題 | No.2624 Prediction by Average |
ユーザー | rlangevin |
提出日時 | 2024-02-09 22:12:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 65,932 KB |
最終ジャッジ日時 | 2024-02-09 22:12:20 |
合計ジャッジ時間 | 1,028 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
53,460 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 36 ms
53,460 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
ソースコード
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)