結果
問題 | No.279 木の数え上げ |
ユーザー |
![]() |
提出日時 | 2023-03-24 11:45:12 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 13,098 ms |
コンパイル使用メモリ | 381,024 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-18 16:03:27 |
合計ジャッジ時間 | 12,081 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let s = s.trim();println!("{}",std::cmp::min(std::cmp::min(s.match_indices("t").count(),s.match_indices("r").count()),s.match_indices("e").count() / 2));}