Submission #30762023
Source Code Expand
Copy
#[allow(unused_imports)]use proconio::{input, marker::*};fn main() {input! {n: usize,a: [usize; n],}let mut cnt = 0;for i in 0..n {for j in i + 1..n {for k in j + 1..n {for l in k + 1..n {for m in l + 1..n {if a[i] + a[j] + a[k] + a[l] + a[m] == 1000 {cnt += 1;}}}}
#[allow(unused_imports)] use proconio::{input, marker::*}; fn main() { input! { n: usize, a: [usize; n], } let mut cnt = 0; for i in 0..n { for j in i + 1..n { for k in j + 1..n { for l in k + 1..n { for m in l + 1..n { if a[i] + a[j] + a[k] + a[l] + a[m] == 1000 { cnt += 1; } } } } } } println!("{}", cnt); }
Submission Info
Submission Time | |
---|---|
Task | 020 - Choose Cards 2 |
User | apahie |
Language | Rust (1.42.0) |
Score | 1000 |
Code Size | 541 Byte |
Status | AC |
Exec Time | 95 ms |
Memory | 2116 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 1000 / 1000 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | in01_small, in02_small, in03_small, in04_small, in05_small, in06_small, in07_small, in08_small, in09_small, in10_small, in11_small, in12_small, in13_small, in14_small, in15_small, in16_small, in17_small, in18_small, in19_small, in20_small, in21_large, in22_large, in23_large, in24_large, in25_large, in26_large, in27_large, in28_large, in29_large, in30_large, sample_01, sample_02 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in01_small | AC | 6 ms | 2008 KB |
in02_small | AC | 2 ms | 2028 KB |
in03_small | AC | 1 ms | 1932 KB |
in04_small | AC | 1 ms | 1980 KB |
in05_small | AC | 1 ms | 2020 KB |
in06_small | AC | 2 ms | 1900 KB |
in07_small | AC | 1 ms | 2060 KB |
in08_small | AC | 1 ms | 2060 KB |
in09_small | AC | 2 ms | 2000 KB |
in10_small | AC | 2 ms | 2020 KB |
in11_small | AC | 1 ms | 2056 KB |
in12_small | AC | 1 ms | 1924 KB |
in13_small | AC | 2 ms | 2116 KB |
in14_small | AC | 1 ms | 2004 KB |
in15_small | AC | 1 ms | 1940 KB |
in16_small | AC | 1 ms | 2044 KB |
in17_small | AC | 1 ms | 2048 KB |
in18_small | AC | 2 ms | 2012 KB |
in19_small | AC | 2 ms | 1980 KB |
in20_small | AC | 2 ms | 2020 KB |
in21_large | AC | 67 ms | 1860 KB |
in22_large | AC | 87 ms | 1988 KB |
in23_large | AC | 62 ms | 1936 KB |
in24_large | AC | 87 ms | 2044 KB |
in25_large | AC | 69 ms | 1940 KB |
in26_large | AC | 87 ms | 2092 KB |
in27_large | AC | 95 ms | 2108 KB |
in28_large | AC | 63 ms | 2116 KB |
in29_large | AC | 64 ms | 2040 KB |
in30_large | AC | 88 ms | 2048 KB |
sample_01 | AC | 2 ms | 1952 KB |
sample_02 | AC | 2 ms | 2044 KB |