結果
問題 | No.692 square1001 and Permutation 1 |
ユーザー |
![]() |
提出日時 | 2018-06-08 22:47:07 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 440 bytes |
コンパイル時間 | 13,580 ms |
コンパイル使用メモリ | 402,388 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 10:53:35 |
合計ジャッジ時間 | 14,377 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
use std::io::{Read, stdin}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut tok = buf.split_whitespace(); let mut get = || tok.next().unwrap(); macro_rules! get { ($t:ty) => (get().parse::<$t>().unwrap()); () => (get!(i64)); } let n = get!(); if n == 1 { println!("square1001") } else { println!("Petr"); } }