結果
問題 | No.244 ★1のグラフの問題 |
ユーザー | ciel |
提出日時 | 2015-07-17 22:40:08 |
言語 | Rust (1.77.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 256 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 161,672 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-04-15 02:52:18 |
合計ジャッジ時間 | 1,030 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,812 KB |
testcase_01 | AC | 1 ms
6,944 KB |
testcase_02 | AC | 1 ms
6,944 KB |
testcase_03 | AC | 1 ms
6,940 KB |
testcase_04 | AC | 1 ms
6,940 KB |
testcase_05 | AC | 1 ms
6,944 KB |
testcase_06 | AC | 0 ms
6,940 KB |
testcase_07 | AC | 1 ms
6,944 KB |
testcase_08 | AC | 1 ms
6,940 KB |
testcase_09 | AC | 0 ms
6,940 KB |
コンパイルメッセージ
warning: unused `Result` that must be used --> main.rs:3:5 | 3 | std::io::stdin().read_line(&mut __str); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 3 | let _ = std::io::stdin().read_line(&mut __str); | +++++++ warning: 1 warning emitted
ソースコード
fn getint() -> i32{ let mut __str=String::new(); std::io::stdin().read_line(&mut __str); let l=__str.len(); __str.truncate(l-1); return i32::from_str_radix(&__str,10).unwrap(); } fn main(){ let n=getint(); println!("{}",n-1); }