use std::io::stdin; fn main() { let nk = read(); let n = nk[0]; let k = nk[1]; let a = read(); // bit, cur, tot let mut c = 0; let mut stack = (0..n).map(|i| (1i128<>(); while !stack.is_empty() { let (bit, cur, tot) = stack.pop().unwrap(); if tot==k { let mut t1 = 0; let mut t2 = 0; for i in 0..n { if bit&(1< Vec { let mut line = String::new(); stdin().read_line(&mut line).unwrap(); line.split_whitespace().map(|token| token.parse().unwrap()).collect::>() }