add unsolved

This commit is contained in:
2026-04-27 10:21:50 +09:00
parent fe8128ab65
commit 9abd51b9b8
10 changed files with 385 additions and 0 deletions

19
storage/zeta/rs/11694.rs Normal file
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() - 1);
let flg = p.fold(0, |acc, x| acc ^ x);
if flg == 0 {
println!("cubelover");
} else {
println!("koosaga");
}
}