結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-05-14 15:04:51 | 
| 言語 | Rust  (1.83.0 + proconio)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 5,000 ms | 
| コード長 | 335 bytes | 
| コンパイル時間 | 12,364 ms | 
| コンパイル使用メモリ | 402,404 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-20 09:58:18 | 
| 合計ジャッジ時間 | 13,492 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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);
}