結果
問題 | No.632 穴埋め門松列 |
ユーザー |
|
提出日時 | 2020-02-09 12:24:09 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 13,610 ms |
コンパイル使用メモリ | 387,840 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 05:51:33 |
合計ジャッジ時間 | 12,717 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
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 if a[1] == 2 { println!("{}", 4); } else { println!("{}", 1); } }