結果
問題 | No.2298 yukicounter |
ユーザー |
|
提出日時 | 2024-07-16 23:17:06 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 12,782 ms |
コンパイル使用メモリ | 393,888 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 23:17:29 |
合計ジャッジ時間 | 12,352 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
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.max(b + 1))}