結果
問題 |
No.1446 ハンバーグと納豆ごはん
|
ユーザー |
|
提出日時 | 2021-03-29 23:56:31 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 191 bytes |
コンパイル時間 | 15,379 ms |
コンパイル使用メモリ | 376,660 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 18:47:45 |
合計ジャッジ時間 | 15,154 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)]` 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)); } }