Submission #16516372


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: usize,
        a: usize,
        b: usize,
    };
    let max = std::cmp::min(a, b);
    let min = (b + a).saturating_sub(n);
    println!("{} {}", max, min);
}

Submission Info

Submission Time
Task A - Subscribers
User bouzuya
Language Rust (1.42.0)
Score 100
Code Size 219 Byte
Status AC
Exec Time 6 ms
Memory 2120 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10
Case Name Status Exec Time Memory
a01 AC 6 ms 1960 KB
a02 AC 4 ms 1952 KB
a03 AC 1 ms 1896 KB
b04 AC 1 ms 2060 KB
b05 AC 2 ms 2120 KB
b06 AC 2 ms 2048 KB
b07 AC 1 ms 1960 KB
b08 AC 2 ms 1976 KB
b09 AC 1 ms 1944 KB
b10 AC 2 ms 2088 KB