QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#839027 | #1. I/O Test | ntprc0x | 0 | 0ms | 0kb | Rust | 574b | 2025-01-01 10:40:27 | 2025-01-01 10:40:27 |
config.txt
100 100
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(" "));
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
input_test Judgement Failed
Test #1:
score: 0
input_test Judgement Failed
input:
100 184360031 825616648 482164486 404622972 122146664 348361750 491280378 167739716 551225628 825409124 719729202 962367316 568279083 440715280 825632365 791968624 550135213 609385782 968247039 874188243 960702484 800906120 685179738 328518688 164484682 873859190 623555036 567306047 425770879 687875...
output:
result:
Subtask #2:
score: 0
output_test Judgement Failed
Test #2:
score: 0
output_test Judgement Failed
input:
100