結果
| 問題 | No.1535 五七五 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-07 22:02:41 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 232 ms / 2,000 ms |
| + 584µs | |
| コード長 | 399 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 308,448 KB |
| 最終ジャッジ日時 | 2026-09-20 21:46:29 |
| 合計ジャッジ時間 | 5,696 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
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)