結果

問題 No.1535 五七五
ユーザー flippergo
提出日時 2024-11-07 22:02:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 532 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 251,668 KB
最終ジャッジ日時 2024-11-07 22:03:08
合計ジャッジ時間 5,338 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a,b,c = map(int,input().split())
S = list(input().split())
Ind = []
for i in range(N):
    s = S[i]
    for j in range(len(s)):
        if j==0:
            Ind.append(0)
        else:
            Ind.append(1)
Ind.append(0)
ans = 0
L = len(Ind)
for i in range(L-a-b-c):
    if Ind[i]!=0:continue
    if Ind[i+a]==0 and Ind[i+a+b]==0 and Ind[i+a+b+c]==0:
        ans += 1
print(ans)
0