結果
問題 | No.2624 Prediction by Average |
ユーザー |
|
提出日時 | 2024-02-09 21:58:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 481 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-28 15:14:51 |
合計ジャッジ時間 | 2,152 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 |
ソースコード
T=int(input()) for t in range(T): case=input().split() n=int(case[0]) s=case[1].split('.')[1] if '.' in case[1] else "000" while len(s)<3: s+='0' decimal_part=int(s) ans=max(0,n-999) for i in range(1,min(n+1,1000)): m=(i*decimal_part+999)//1000 d=m*1000//i if(d==decimal_part): ans+=1 print(ans)