結果
問題 |
No.632 穴埋め門松列
|
ユーザー |
|
提出日時 | 2020-02-09 12:21:44 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 12,044 ms |
コンパイル使用メモリ | 407,400 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 05:50:55 |
合計ジャッジ時間 | 11,827 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 2 |
ソースコード
use std::io::Read; use std::cmp::min; fn main() { let mut a = String::new(); std::io::stdin().read_to_string(&mut a).ok(); let a: Vec<usize> = a.trim().split('\n').next().unwrap().split_whitespace() .map(|s| s.parse::<usize>().unwrap_or_else(|_| 0)) .collect(); if min(a[0], a[2]) == 2 { println!("{}", 14); } else { println!("{}", 4); } }