結果
| 問題 | No.3700 真ん中 (Middle) |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2026-09-22 10:13:38 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 766µs | |
| コード長 | 727 bytes |
| 記録 | |
| コンパイル時間 | 761 ms |
| コンパイル使用メモリ | 200,276 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-09-22 10:13:42 |
| 合計ジャッジ時間 | 3,186 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#![allow(non_snake_case, unused_imports)]
use std::collections::{BinaryHeap, HashMap, HashSet};
use proconio::{input, marker::Usize1, marker::Chars};
use itertools::Itertools;
#[allow(unused_macros)]
macro_rules! d {
( $( $x:expr ),* $(,)? ) => {
eprintln!(
concat!( $( stringify!($x), "={:?} " ),* ),
$( $x ),*
);
};
}
#[allow(dead_code)]
fn yn(b: bool) -> &'static str {
if b { "Yes" } else { "No" }
}
fn main() {
input! {
A: i64,
B: i64,
C: i64,
}
let ans = [A, B, C].iter()
.combinations(2)
.map(|x| x.into_iter().sum::<i64>())
.k_smallest(2)
.last()
.unwrap();
println!("{}", ans);
}
norioc