結果
問題 |
No.1040 垂直大学
|
ユーザー |
|
提出日時 | 2021-11-05 21:00:58 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 12,581 ms |
コンパイル使用メモリ | 389,668 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 11:46:00 |
合計ジャッジ時間 | 13,800 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
fn input_line<T: std::str::FromStr>() -> Vec<T> { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim() .split_whitespace() .map(|x| x.parse().ok().unwrap()) .collect() } fn main() { let a = input_line::<u32>(); println!( "{}", if a[0] % 90 == 0 && a[0] % 180 != 0 { "Yes" } else { "No" } ); }