結果
問題 | No.2298 yukicounter |
ユーザー |
|
提出日時 | 2024-07-16 23:14:30 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 13,588 ms |
コンパイル使用メモリ | 405,300 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-16 23:14:56 |
合計ジャッジ時間 | 15,766 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 27 WA * 3 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let (mut a, mut b) = (0, 0);for w in s.trim().split("yukicoder").skip(1) {if w.is_empty() {b += 1;} else {a = a.max(b + 1);b = 0;}}println!("{a}")}