結果
| 問題 |
No.2878 𝕀𝔾ℕ𝕀𝕋𝕀𝕆ℕ
|
| コンテスト | |
| ユーザー |
naut3
|
| 提出日時 | 2024-11-03 20:03:57 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 813 bytes |
| コンパイル時間 | 13,699 ms |
| コンパイル使用メモリ | 404,036 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-03 20:04:27 |
| 合計ジャッジ時間 | 14,593 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
#![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: tt, $n: expr) => {
(0..$n).map(|_| input!($t)).collect::<Vec<_>>()
};
(Chars) => {
input! {String}.chars().collect::<Vec<_>>()
};
(Usize1) => {
stdin.next().unwrap().parse::<usize>().unwrap() - 1
};
($t: ty) => {
stdin.next().unwrap().parse::<$t>().unwrap()
};
}
writeln!(
buffer,
"{}",
"IGNITION".chars().collect::<Vec<_>>()[input!(Usize1)]
);
}
naut3