結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-28 18:16:56 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 486 bytes |
| コンパイル時間 | 13,404 ms |
| コンパイル使用メモリ | 401,984 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-28 18:17:10 |
| 合計ジャッジ時間 | 12,822 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#[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 {
for j in 0..8 {
if b[i][j] != '.' {
cnt += 1;
}
}
}
println!("{}", player[cnt % 2])
}