complete 1929.cpp 17425.cpp 32870.cpp 11868.rs

This commit is contained in:
2026-03-21 20:40:37 +09:00
parent 7768f8b446
commit a42056c8d1
4 changed files with 237 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
use std::io::{read_to_string, stdin};
fn main() {
let temp = read_to_string(stdin()).unwrap();
let mut iter = temp
.split_ascii_whitespace()
.map(|x| x.parse::<usize>().unwrap());
let n = iter.next().unwrap();
let p = (0..n).map(|_| iter.next().unwrap());
let flg = p.fold(0, |acc, x| acc ^ x);
if flg == 0 {
println!("cubelover");
} else {
println!("koosaga");
}
}