結果
| 問題 | No.2738 CPC To F |
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-10 02:51:53 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 80,640 KB |
| 実行使用メモリ | 328,580 KB |
| 最終ジャッジ日時 | 2026-10-04 21:06:50 |
| 合計ジャッジ時間 | 6,575 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 21 |
ソースコード
N = int(input())
S = input()
i, current, cnt = 0, 0, 0
while i <= N:
s = S[current:i]
if (s == 'CPCTF'):
cnt += 1
i += 1
current += 5
elif (s == 'CPCTCPC'):
cnt += 1
i += 1
current += 6
else:
i += 1
print(cnt)
splash9494