結果
| 問題 | No.78 クジ付きアイスバー |
| コンテスト | |
| ユーザー |
kurenai3110
|
| 提出日時 | 2017-02-01 16:09:49 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 417 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 21,504 KB |
| 最終ジャッジ日時 | 2026-05-29 22:33:30 |
| 合計ジャッジ時間 | 8,274 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 1 TLE * 1 -- * 33 |
ソースコード
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)
kurenai3110