AC043 in rust, finished all. (D doesn't get tested correctly locally)

This commit is contained in:
2022-05-28 14:58:05 +02:00
parent b378c4cb07
commit 97ee8adbf3
6 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
use proconio::input;
fn main() {
input!{
n: u32,
};
let result = n * (n + 1) / 2;
println!("{}", {result});
}