結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-11-23 20:05:01 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 403 bytes |
| コンパイル時間 | 13,242 ms |
| コンパイル使用メモリ | 389,536 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 00:53:13 |
| 合計ジャッジ時間 | 14,358 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
use std::io::{self, BufRead};
fn main() {
io::stdin().lock().lines().for_each(|l| {
let f = l
.unwrap()
.split_whitespace()
.map(|n| n.parse::<u8>().unwrap())
.collect::<Vec<_>>();
match &f[0..4] {
[1, 1, _, 0] | [1, _, 1, 0] | [_, 1, 1, 0] => println!("DEAD"),
_ => println!("SURVIVED"),
}
});
}
cra77756176