結果
問題 | No.2624 Prediction by Average |
ユーザー | 👑 H20 |
提出日時 | 2024-02-09 22:54:51 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 59,520 KB |
最終ジャッジ日時 | 2024-02-09 22:54:56 |
合計ジャッジ時間 | 3,628 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
59,520 KB |
testcase_01 | TLE | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
ソースコード
T = int(input()) for _ in range(T): n,s = input().split() n = int(n) s = s.split('.') s = int(s[0]+s[1]) ans = max(0,n-100) for i in range(1,min(100,n)+1): for j in range(i*100+1): if (j*1000)//i==s: ans+=1 break print(ans)