結果
| 問題 | No.1535 五七五 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-06 18:08:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 393 bytes |
| 記録 | |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-16 23:42:55 |
| 合計ジャッジ時間 | 5,206 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 1 -- * 19 |
ソースコード
N = int(input())
a, b, c = map(int, input().split())
S = ""
T = list(input().split())
for i in range(N):
S += "1"
S += "0" * (len(T[i]) - 1)
S += "1"
ind = 0
ans = 0
for i in range(N):
if ind + a + b + c >= len(S):
continue
if S[ind] == "1" and S[ind + a] == "1" and S[ind + a + b] == "1" and S[ind + a + b + c] == "1":
ans += 1
ind += len(T[i])
print(ans)