結果

問題 No.8124 A+B
コンテスト
ユーザー GaLLium
提出日時 2026-03-25 05:20:44
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 260 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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`

ソースコード

diff #
raw source code

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