結果

問題 No.2738 CPC To F
ユーザー YU HiroseYU Hirose
提出日時 2024-05-02 17:22:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 24,048 KB
最終ジャッジ日時 2024-11-23 09:34:04
合計ジャッジ時間 2,319 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
n = int(input())
s = input()
# p1 = [m.span() for m in re.finditer('CPC', s)]
p2 = [m.span() for m in re.finditer('CPCTF', s)]
p3 = [m.span() for m in re.finditer('CPCTCPC', s)]
print(len(p2) + len(p3))
0