結果
| 問題 |
No.2738 CPC To F
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-09 13:09:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 430 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2024-12-16 02:31:44 |
| 合計ジャッジ時間 | 2,897 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 19 |
ソースコード
n=int(input())
S = str(input())
cnt=0
a=0
for i in range(len(S)-4-a):
#print(i)
if(len(S)>i+a+4):
if(S[i+a]=="C" and S[i+1+a]=="P" and S[i+2+a]=="C" and S[i+3+a]=="T"):
if(S[i+4]=="F"):
cnt+=1
if(len(S)-i>6+a):
if(S[i+4+a]=="C" and S[i+5+a]=="P" and S[i+6+a]=="C"):
cnt+=1
a+=6
print(cnt)