結果
問題 | No.2624 Prediction by Average |
ユーザー |
👑 |
提出日時 | 2024-01-05 02:27:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 74,320 KB |
最終ジャッジ日時 | 2024-09-27 18:57:39 |
合計ジャッジ時間 | 1,285 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 4 |
ソースコード
def solve():N, S = input().split()N = int(N); S = int(S.replace(".", ""))cnt = 0for i in range(1, min(N, 999) + 1):if S * i <= (S * i + i) // 1000 * 1000:cnt += 1cnt += max(N - 999, 0)print(cnt)T = int(input())for _ in range(T):solve()