結果
| 問題 | No.8124 A+B |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-25 05:18:39 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 32,968 ms |
| コンパイル使用メモリ | 385,192 KB |
| 実行使用メモリ | 391,464 KB |
| 最終ジャッジ日時 | 2026-04-01 20:52:18 |
| 合計ジャッジ時間 | 19,688 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | RE * 6 |
コンパイルメッセージ
warning: variable `A` should have a snake case name --> src/main.rs:4:6 | 4 | let A:usize = itr.next().unwrap().parse().unwrap(); | ^ help: convert the identifier to snake case: `a` | = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default warning: variable `B` should have a snake case name --> src/main.rs:5:6 | 5 | let B:usize = itr.next().unwrap().parse().unwrap(); | ^ help: convert the identifier to snake case: `b`
ソースコード
fn main(){
let input_str = std::io::read_to_string(std::io::stdin()).unwrap();
let mut itr = input_str.split_whitespace();
let A:usize = itr.next().unwrap().parse().unwrap();
let B:usize = itr.next().unwrap().parse().unwrap();
println!("{}",A+B);
}