QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#839029 | #1. I/O Test | ntprc0x | 0 | 0ms | 0kb | Rust | 572b | 2025-01-01 10:41:31 | 2025-01-01 10:41:32 |
config.txt
10 10
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
use std::iter;
fn main() {
let mut it = std::io::stdin().lines();
let n = it.next().unwrap().unwrap().trim().parse::<usize>().unwrap();
println!("{}", iter::repeat_n("100000000", n).collect::<Vec<_>>().join(" "));
}
詳細信息
Subtask #1:
score: 0
input_test Judgement Failed
Test #1:
score: 0
input_test Judgement Failed
input:
10 732410498 495978433 167083310 841478022 782384548 645827534 611078430 875057991 907528224 250862461
output:
result:
Subtask #2:
score: 0
output_test Judgement Failed
Test #2:
score: 0
output_test Judgement Failed
input:
10