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