結果
問題 |
No.78 クジ付きアイスバー
|
ユーザー |
![]() |
提出日時 | 2017-02-01 16:09:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 251 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,376 KB |
最終ジャッジ日時 | 2024-12-24 02:29:36 |
合計ジャッジ時間 | 140,919 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 12 TLE * 23 |
ソースコード
n,k = list(map(int,input().split())) s=input() x=0 cnt=0 total=0 while total<k: for c in s: if x: x-=1 else: cnt+=1 x+=int(c) total+=1 if total==k: break print(cnt)