結果

問題 No.2738 CPC To F
ユーザー well-defined
提出日時 2024-09-15 15:15:00
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 13,648 ms
コンパイル使用メモリ 379,216 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 15:15:16
合計ジャッジ時間 14,997 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;
use proconio::marker::Chars;

fn main () {
    input! {
        _: usize,
        s: Chars,
    }
    let s = s.iter().collect::<String>();
    let s = s.replace("CPCTCPC", "CPCTF");
    //println!("{}", s);
    let ans = s.matches("CPCTF").count();
    println!("{}", ans);
}
0