結果
問題 |
No.1238 選抜クラス
|
ユーザー |
![]() |
提出日時 | 2020-09-25 21:44:38 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 817,800 KB |
最終ジャッジ日時 | 2024-06-28 06:18:30 |
合計ジャッジ時間 | 5,088 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 MLE * 1 -- * 21 |
ソースコード
n,k=map(int,input().split()) a=list(map(int,input().split())) cnt=[[0,0]] for i in range(n): num2=len(cnt) for j in range(num2): cnt.append([cnt[j][0]+a[i],cnt[j][1]+1]) ans=0 for i in range(1,len(cnt)): if cnt[i][0]>=k*cnt[i][1]: ans+=1 print(ans)