結果

問題 No.2637 Factorize?
コンテスト
ユーザー ktmtr005
提出日時 2024-03-05 11:28:28
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 831µs
コード長 483 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,096 ms
コンパイル使用メモリ 176,632 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-09-06 04:37:20
合計ジャッジ時間 3,174 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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);
}
0