結果
| 問題 | No.78 クジ付きアイスバー |
| コンテスト | |
| ユーザー |
kurenai3110
|
| 提出日時 | 2017-02-01 16:09:49 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-06 22:56:34 |
| 合計ジャッジ時間 | 9,260 ms |
|
ジャッジサーバーID (参考情報) |
judge3_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