結果
| 問題 |
No.2738 CPC To F
|
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-10 03:04:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 147 bytes |
| コンパイル時間 | 402 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 56,272 KB |
| 最終ジャッジ日時 | 2024-12-17 23:25:44 |
| 合計ジャッジ時間 | 2,102 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
N = int(input())
S = input()
cnt = 0
S = S.replace('CPCTF', 'x')
cnt += S.count('x')
S = S.replace('CPCTCPC', 'y')
cnt += S.count('y')
print(cnt)
splash9494