結果
問題 | No.2945 Namiki Secondary School |
ユーザー |
![]() |
提出日時 | 2024-10-26 10:22:05 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 738 bytes |
コンパイル時間 | 12,343 ms |
コンパイル使用メモリ | 401,840 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 01:41:10 |
合計ジャッジ時間 | 13,953 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#![allow(non_snake_case, unused_must_use, unused_imports)] use std::io::{self, prelude::*}; fn main() { let (stdin, stdout) = (io::read_to_string(io::stdin()).unwrap(), io::stdout()); let (mut stdin, mut buffer) = (stdin.split_whitespace(), io::BufWriter::new(stdout.lock())); macro_rules! input { ($t: ty, $n: expr) => { (0..$n).map(|_| input!($t)).collect::<Vec<_>>() }; ($t: ty) => { stdin.next().unwrap().parse::<$t>().unwrap() }; } let N = input!(u64); if N >= 2008 { writeln!(buffer, "Namiki Secondary School"); } else if N >= 1984 { writeln!(buffer, "Namiki High School"); } else { writeln!(buffer, "None"); } }