結果
| 問題 | No.8124 A+B |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-25 05:20:44 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 30,703 ms |
| コンパイル使用メモリ | 384,424 KB |
| 実行使用メモリ | 392,264 KB |
| 最終ジャッジ日時 | 2026-04-01 20:52:21 |
| 合計ジャッジ時間 | 30,931 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
warning: variable `A` should have a snake case name --> src/main.rs:4:6 | 4 | let A:f64 = 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:f64 = 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:f64 = itr.next().unwrap().parse().unwrap();
let B:f64 = itr.next().unwrap().parse().unwrap();
println!("{}",(A+B) as usize);
}