結果
| 問題 | No.1446 ハンバーグと納豆ごはん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-29 23:56:31 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 191 bytes |
| 記録 | |
| コンパイル時間 | 3,122 ms |
| コンパイル使用メモリ | 198,708 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-23 12:19:08 |
| 合計ジャッジ時間 | 4,751 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
コンパイルメッセージ
warning: variable `A` should have a snake case name --> src/main.rs:5:5 | 5 | A: i64, | ^ 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:6:5 | 6 | B: i64, | ^ help: convert the identifier to snake case: `b` warning: variable `N` should have a snake case name --> src/main.rs:7:5 | 7 | N: i64, | ^ help: convert the identifier to snake case: `n` warning: variable `M` should have a snake case name --> src/main.rs:8:5 | 8 | M: i64, | ^ help: convert the identifier to snake case: `m`
ソースコード
use proconio::input;
fn main(){
input!{
A: i64,
B: i64,
N: i64,
M: i64,
}
if A>B{
println!("{}",B+(A-B)/(N+1));
}
else{
println!("{}",A+(B-A)/(M+1));
}
}