結果
| 問題 |
No.1472 作為の和
|
| コンテスト | |
| ユーザー |
Strorkis
|
| 提出日時 | 2021-04-09 23:19:03 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 911 bytes |
| コンパイル時間 | 11,554 ms |
| コンパイル使用メモリ | 395,548 KB |
| 実行使用メモリ | 13,884 KB |
| 最終ジャッジ日時 | 2024-06-25 07:12:18 |
| 合計ジャッジ時間 | 22,413 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 4 OLE * 4 -- * 1 |
ソースコード
fn run<'a, I: Iterator<Item = &'a str>>(mut scanner: I) {
macro_rules! scan {
([$t:tt; $n:expr]) => ((0..$n).map(|_| scan!($t)).collect::<Vec<_>>());
(($($t:tt),*)) => (($(scan!($t)),*));
([$($t:tt),*]) => ([$(scan!($t)),*]);
(Usize1) => (scan!(usize) - 1);
(Bytes) => (scan!(String).into_bytes());
($t:ty) => (scanner.next().unwrap().parse::<$t>().unwrap());
}
macro_rules! input {
($($($v:ident)* : $t:tt),* $(,)?) => ($(let $($v)* = scan!($t);)*);
}
input! {
n: usize,
}
if n == 0 {
println!("9 1");
} else {
print!("8");
for _ in 0..n {
print!("99");
}
println!(" 2");
}
}
fn main() {
let ref mut buf = Vec::new();
std::io::Read::read_to_end(&mut std::io::stdin(), buf).ok();
run(std::str::from_utf8(buf).unwrap().split_whitespace());
}
Strorkis