Submission #40079300
Source Code Expand
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <tuple>
#include <unordered_map>
#define x first
#define y second
#define speedup (ios::sync_with_stdio(0), cin.tie(0), cout.tie(0))
#define INF 0x3f3f3f3f
using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
const int N = 1e5 + 10;
int main()
{
int n;
cin >> n;
for(int i = 1; i <= n; i ++)
{
int x;
cin >> x;
if(x % 2 == 0) cout << x << ' ';
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Filter |
| User | Moyou |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 635 Byte |
| Status | AC |
| Exec Time | 7 ms |
| Memory | 3584 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 02_max_05.txt, 02_max_06.txt, 03_random_07.txt, 03_random_08.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 7 ms | 3544 KiB |
| 00_sample_01.txt | AC | 2 ms | 3512 KiB |
| 00_sample_02.txt | AC | 2 ms | 3584 KiB |
| 01_random_03.txt | AC | 2 ms | 3348 KiB |
| 01_random_04.txt | AC | 2 ms | 3480 KiB |
| 02_max_05.txt | AC | 2 ms | 3528 KiB |
| 02_max_06.txt | AC | 2 ms | 3528 KiB |
| 03_random_07.txt | AC | 2 ms | 3568 KiB |
| 03_random_08.txt | AC | 2 ms | 3404 KiB |