結果

問題 No.2960 Judgement
ユーザー Haniwa
提出日時 2025-10-05 19:38:21
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 777 ms
コード長 343 bytes
コンパイル時間 11,130 ms
コンパイル使用メモリ 403,840 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-05 19:38:35
合計ジャッジ時間 12,573 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
	input! {
		s: [String; 8],
	}

	let count =
        s.into_iter()
        .filter(|str| *str == "AC".to_string() || *str == "NoOut".to_string())
        .count();

    let ans = if count >= 6 {
        "Win"
    } else if count == 5 {
        "Draw"
    } else {
        "Lose"
    };

	println!("{ans}");
}
0