結果
問題 | No.2637 Factorize? |
ユーザー |
|
提出日時 | 2024-03-05 11:28:28 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 483 bytes |
コンパイル時間 | 12,986 ms |
コンパイル使用メモリ | 388,900 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-29 17:49:28 |
合計ジャッジ時間 | 14,658 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 |
ソースコード
fn read() -> String { let mut buf = String::new(); std::io::stdin() .read_line(&mut buf) .expect("failed to read line."); buf.trim().to_string() } fn read_vec<T: std::str::FromStr>() -> Vec<T> where <T as std::str::FromStr>::Err: std::fmt::Debug, { read() .split_whitespace() .map(|x| x.parse().expect("failed to parse.")) .collect::<Vec<T>>() } fn main() { let p = read_vec::<u64>()[0]; println!("{} {}", 1, p); }