Skip to content

Commit 3e52bf0

Browse files
committed
add abc422c.rs
1 parent 62436d9 commit 3e52bf0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/abc/abc422c.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** THIS IS AN OUTPUT FILE. NOT EDIT THIS FILE DIRECTLY. **/
2+
use proconio::input;
3+
use proconio::marker::*;
4+
use std::marker::PhantomData;
5+
use std::cmp::*;
6+
use std::collections::*;
7+
8+
fn main() {
9+
input! {
10+
t:usize,
11+
abc:[(usize,usize,usize);t]
12+
}
13+
14+
for (a, b, c) in abc {
15+
println!("{}", a.min(c).min((a+b+c)/3));
16+
}
17+
}

0 commit comments

Comments
 (0)