結果
| 問題 |
No.2960 Judgement
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-02 19:49:35 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 777 ms |
| コード長 | 547 bytes |
| コンパイル時間 | 14,183 ms |
| コンパイル使用メモリ | 384,692 KB |
| 実行使用メモリ | 8,604 KB |
| 最終ジャッジ日時 | 2025-03-02 19:49:51 |
| 合計ジャッジ時間 | 15,200 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#[allow(unused)]
use proconio::{input, marker::Chars};
use std::collections::HashMap;
fn main() {
input! {
s: [String; 8],
}
let mut judge = HashMap::from([("AC", 0), ("WA", 0), ("RE", 0), ("NoOut", 0), ("NoSub", 0)]);
for j in s.iter() {
*judge.entry(j.as_str()).or_default() += 1;
}
if judge["AC"] + judge["NoOut"] >= 6 {
println!("Win")
} else if judge["AC"] + judge["NoOut"] == 5 {
println!("Draw")
} else if judge["AC"] + judge["NoOut"] <= 4 {
println!("Lose")
}
}