QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#839019#1. I/O Testntprc0xCompile Error//Rust588b2025-01-01 10:32:062025-01-01 10:32:06

Judging History

你现在查看的是最新测评结果

  • [2025-01-01 10:32:06]
  • 评测
  • [2025-01-01 10:32:06]
  • 提交

config.txt

10000000, 10000000

input_test

fn main() {
    let mut it = std::io::stdin().lines();
    let n = it.next().unwrap().unwrap().trim().parse::<usize>().unwrap();
    let data = it.next().unwrap().unwrap().split_whitespace().take(n).map(|x| x.parse::<usize>().unwrap()).collect::<Vec<_>>();
    let sum = data.iter().sum::<usize>();
    println!("{}", sum);
}

output_test

fn main() {
    let mut it = std::io::stdin().lines();
    let n = it.next().unwrap().unwrap().trim().parse::<usize>().unwrap();
    println!("{}", (1_0000_0000usize..).take(n).map(|x| x.to_string()).collect::<Vec<_>>().join(" "));
}

详细

Invalid Configuration File: failed to read Nin and Nout