Submission #53346762
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;int main(){int a,sum=0;cin >> a;vector<int> all(a);for(int i=0;i<a;i++){cin >> all[i];}for(int i=0;i<a-1;i++){for(int p=i+1;p<a;p++){sum += (all[i]+all[p])%100000000;}}cout << sum;}
#include<bits/stdc++.h> using namespace std; int main(){ int a,sum=0; cin >> a; vector<int> all(a); for(int i=0;i<a;i++){ cin >> all[i]; } for(int i=0;i<a-1;i++){ for(int p=i+1;p<a;p++){ sum += (all[i]+all[p])%100000000; } } cout << sum; }
Submission Info
Submission Time | |
---|---|
Task | C - Sigma Problem |
User | p2bananan |
Language | C++ 20 (gcc 12.2) |
Score | 0 |
Code Size | 286 Byte |
Status | WA |
Exec Time | 2210 ms |
Memory | 4568 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_01.txt, 00_sample_02.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt, 01_test_18.txt, 01_test_19.txt, 01_test_20.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 1 ms | 3496 KB |
00_sample_02.txt | AC | 1 ms | 3492 KB |
01_test_01.txt | TLE | 2207 ms | 4568 KB |
01_test_02.txt | TLE | 2207 ms | 4420 KB |
01_test_03.txt | TLE | 2207 ms | 4472 KB |
01_test_04.txt | TLE | 2207 ms | 4408 KB |
01_test_05.txt | TLE | 2207 ms | 4464 KB |
01_test_06.txt | TLE | 2207 ms | 4452 KB |
01_test_07.txt | TLE | 2207 ms | 4424 KB |
01_test_08.txt | TLE | 2207 ms | 4456 KB |
01_test_09.txt | TLE | 2207 ms | 4568 KB |
01_test_10.txt | TLE | 2207 ms | 4428 KB |
01_test_11.txt | TLE | 2207 ms | 4460 KB |
01_test_12.txt | TLE | 2207 ms | 4320 KB |
01_test_13.txt | TLE | 2210 ms | 4420 KB |
01_test_14.txt | WA | 700 ms | 3484 KB |
01_test_15.txt | TLE | 2207 ms | 4428 KB |
01_test_16.txt | TLE | 2207 ms | 3976 KB |
01_test_17.txt | AC | 1 ms | 3464 KB |
01_test_18.txt | AC | 1 ms | 3460 KB |
01_test_19.txt | TLE | 2207 ms | 4468 KB |
01_test_20.txt | TLE | 2207 ms | 4432 KB |