Task: | Integer Points |
Sender: | Nallue |
Submission time: | 2024-11-25 16:48:04 +0200 |
Language: | C++ (C++11) |
Status: | READY |
Result: | TIME LIMIT EXCEEDED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.00 s | details |
#2 | ACCEPTED | 0.00 s | details |
#3 | ACCEPTED | 0.00 s | details |
#4 | ACCEPTED | 0.00 s | details |
#5 | TIME LIMIT EXCEEDED | -- | details |
#6 | TIME LIMIT EXCEEDED | -- | details |
#7 | TIME LIMIT EXCEEDED | -- | details |
#8 | TIME LIMIT EXCEEDED | -- | details |
#9 | TIME LIMIT EXCEEDED | -- | details |
#10 | TIME LIMIT EXCEEDED | -- | details |
#11 | TIME LIMIT EXCEEDED | -- | details |
#12 | TIME LIMIT EXCEEDED | -- | details |
#13 | TIME LIMIT EXCEEDED | -- | details |
Code
#include <iostream> #include <vector> using namespace std; int main(){ int a; cin >> a; vector<int> c1(a); for(int i=0; i<a; i++)cin >> c1[i]; int b; cin >> b; vector<int> c2(b); for(int i=0; i<b; i++) cin >> c2[i]; int count =0; for(int i=0; i<a; i++){ for(int l=0; l<b; l++){ if(((c1[i]+c2[l])%2)==0)count +=1; } } cout << count << endl; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
3 1 3 2 2 0 3 |
correct output |
---|
3 |
user output |
---|
3 |
Test 2
Verdict: ACCEPTED
input |
---|
2 1000000000 0 2 1000000000 0 |
correct output |
---|
4 |
user output |
---|
4 |
Test 3
Verdict: ACCEPTED
input |
---|
1 664947340 1 254841583 |
correct output |
---|
0 |
user output |
---|
0 |
Test 4
Verdict: ACCEPTED
input |
---|
200 346438723 462087704 569209152 ... |
correct output |
---|
20000 |
user output |
---|
20000 |
Test 5
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 219972426 682881172 652258550 ... |
correct output |
---|
10000000000 |
user output |
---|
(empty) |
Test 6
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 941269471 182588867 631884359 ... |
correct output |
---|
0 |
user output |
---|
(empty) |
Test 7
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 802070817 437903274 526938648 ... |
correct output |
---|
5000000000 |
user output |
---|
(empty) |
Test 8
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 630252165 102099677 259588247 ... |
correct output |
---|
7160000000 |
user output |
---|
(empty) |
Test 9
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 219808835 223532219 117310337 ... |
correct output |
---|
399994 |
user output |
---|
(empty) |
Test 10
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 1000000000 999999999 999999998... |
correct output |
---|
5000000000 |
user output |
---|
(empty) |
Test 11
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 0 1 2 3 4 5 6 7 8 9 10 11 12 1... |
correct output |
---|
5000000000 |
user output |
---|
(empty) |
Test 12
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 1000000000 999999999 999999998... |
correct output |
---|
5000000000 |
user output |
---|
(empty) |
Test 13
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 0 1 2 3 4 5 6 7 8 9 10 11 12 1... |
correct output |
---|
5000000000 |
user output |
---|
(empty) |