結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2014-12-10 01:17:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 1,105 ms |
コンパイル使用メモリ | 159,260 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 19:10:17 |
合計ジャッジ時間 | 1,838 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,a,b) for(int i=a;i<(int)b;i++) #define rep(i,n) REP(i,0,n) typedef long long ll; int main() { int N; cin >> N; int ans = 0; vector<int> v(N); rep(i, N) { ll x; cin >> x; x+=10000000000; ans -= x%2; ans += !(x%2); } cout << ans << endl; return 0; }