Submission #1091539


Source Code Expand

#include <bits/stdc++.h>
 
using namespace std;
 
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define mp make_pair
#define i_i pair<int, int>
#define vi vector<int>
#define vvi vector<vi >
#define vb vector<bool>
#define vvb vector<vb >
#define vp vector< i_i >
#define all(a) (a).begin(), (a).end()
#define Int(x) int x; scanf("%lld", &x);
 
//int dxy[5] = {0, 1, 0, -1, 0};
// assign
 
signed main()
{
    Int(n);
    int ret = 0;
    rep(i, n) {
        Int(tmp);
        ret += tmp % 2;
    }
    cout << ((ret % 2) ? "NO" : "YES" ) << endl;



    return 0;
}

Submission Info

Submission Time
Task A - Addition
User Ti11192916
Language C++14 (GCC 5.4.1)
Score 300
Code Size 823 Byte
Status AC
Exec Time 14 ms
Memory 256 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:21:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
 #define Int(x) int x; scanf("%lld", &x);
                                        ^
./Main.cpp:28:5: note: in expansion of macro ‘Int’
     Int(n);
     ^
./Main.cpp:21:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
 #define Int(x) int x; scanf("%lld", &x);
                                        ^
./Main.cpp:31:9: note: in expansion of macro ‘Int’
         Int(tmp);
         ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 14
Set Name Test Cases
Sample sample1.txt, sample2.txt
All sample1.txt, sample2.txt, in1.txt, in10.txt, in11.txt, in12.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt
Case Name Status Exec Time Memory
in1.txt AC 14 ms 256 KB
in10.txt AC 14 ms 256 KB
in11.txt AC 3 ms 256 KB
in12.txt AC 3 ms 256 KB
in2.txt AC 14 ms 256 KB
in3.txt AC 14 ms 256 KB
in4.txt AC 14 ms 256 KB
in5.txt AC 14 ms 256 KB
in6.txt AC 14 ms 256 KB
in7.txt AC 14 ms 256 KB
in8.txt AC 14 ms 256 KB
in9.txt AC 14 ms 256 KB
sample1.txt AC 2 ms 256 KB
sample2.txt AC 2 ms 256 KB