結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-14 15:04:51 |
| 言語 | Rust (1.99.0 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 5,000 ms |
| + 848µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 524 ms |
| コンパイル使用メモリ | 188,764 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-10-05 03:41:51 |
| 合計ジャッジ時間 | 2,537 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
use std::io::{stdin, Read};
fn main() {
let (mut s, mut b) = (String::new(), String::new());
stdin().read_line(&mut s).ok();
stdin().read_to_string(&mut b).ok();
let a = if b.chars().filter(|&c| c == 'w' || c == 'b').count() % 2 == 0 {
s.trim().to_owned()
} else {
"odayukiko".replace(s.trim(), "")
};
println!("{}", a);
}