結果

問題 No.2138 Add Bacon
ユーザー chocopuu
提出日時 2022-12-17 03:57:59
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 13,580 ms
コンパイル使用メモリ 379,220 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 09:22:15
合計ジャッジ時間 14,281 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused import: `marker::Bytes`
 --> src/main.rs:1:23
  |
1 | use proconio::{input, marker::Bytes};
  |                       ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

ソースコード

diff #

use proconio::{input, marker::Bytes};
fn main() {
    input! {
        a: i32,
        b: i32,
        c: i32,
        d: i32,
        e: i32
    }
    let ans = a - b + c * (d - e).max(0);
    println!("{}", ans);
}
0