結果
| 問題 | No.2175 Exciting Combo |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-06 21:23:56 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 9,794 ms |
| コンパイル使用メモリ | 194,876 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-24 07:59:30 |
| 合計ジャッジ時間 | 8,547 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
// use itertools::Itertools;
use proconio::input;
use std::cmp::max;
fn main() {
input! {
a: [i32; 3],
b: i32,
}
let x = a[2] * 3;
let y = a.iter().sum::<i32>() + b;
println!("{}", max(x, y));
}