結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-28 18:10:32 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 643 bytes |
| コンパイル時間 | 13,072 ms |
| コンパイル使用メモリ | 383,912 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-28 18:10:46 |
| 合計ジャッジ時間 | 13,822 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 3 |
ソースコード
#[allow(unused)]
use proconio::{input, marker::Chars};
fn main() {
input! {
s: String,
b:[Chars; 8],
}
let mut player = vec![s.clone()];
if s == "yukiko" {
player.push(String::from("oda"));
} else {
player.push(String::from("yukiko"));
}
let mut cnt = 0;
for i in 0..8 {
let mut l = 9;
let mut r = 0;
for j in 0..8 {
if b[i][j] == 'w' || b[i][j] == 'b' {
l = l.min(j);
r = r.max(j);
}
}
if l < 9 {
cnt += r - l + 1;
}
}
println!("{}", player[cnt % 2])
}