結果

問題 No.2738 CPC To F
ユーザー
提出日時 2024-08-06 12:47:46
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 13,785 ms
コンパイル使用メモリ 379,080 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-08-06 12:48:01
合計ジャッジ時間 13,438 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

fn g() -> String {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();
	s
}
fn main() {
	g();
	let s = g().replace("CPCTCPC", "CPCTF");
	println!("{}", s.split("CPCTF").count() - 1)
}
0