Submission #15478857


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: usize,
        p: [i64; n],
    };
    let sum = p.iter().sum::<i64>();
    let max = p.iter().max().unwrap();
    let ans = sum - max + max / 2;
    println!("{}", ans);
}

Submission Info

Submission Time
Task B - Christmas Eve Eve
User bouzuya
Language Rust (1.42.0)
Score 200
Code Size 231 Byte
Status
Exec Time 7 ms
Memory 2132 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02
All 200 / 200 a01, a02, b03, b04, b05, b06, b07, b08, b09, b10
Case Name Status Exec Time Memory
a01 7 ms 2132 KB
a02 2 ms 2032 KB
b03 2 ms 2036 KB
b04 1 ms 2016 KB
b05 1 ms 1956 KB
b06 1 ms 2100 KB
b07 3 ms 1956 KB
b08 2 ms 2012 KB
b09 1 ms 2096 KB
b10 2 ms 2032 KB