結果

問題 No.809 かけ算
コンテスト
ユーザー Program_Panda
提出日時 2020-04-02 21:23:06
言語 Rust
(1.93.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 431 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,012 ms
コンパイル使用メモリ 195,180 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-17 12:38:00
合計ジャッジ時間 1,755 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: function `read_vec` is never used
 --> src/main.rs:7:4
  |
7 | fn read_vec<T: std::str::FromStr>() -> Vec<T> {
  |    ^^^^^^^^
  |
  = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

ソースコード

diff #
raw source code

fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().split_whitespace()
    .map(|e| e.parse().ok().unwrap()).collect()
}

fn main() {
    let num: i32 = read();
    println!("{} {}",1 ,num);
}
0