結果
問題 | No.99 ジャンピング駒 |
ユーザー | shialt |
提出日時 | 2014-12-10 21:26:51 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 302 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 50,492 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-02 13:56:57 |
合計ジャッジ時間 | 1,034 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
ソースコード
#include <iostream> using namespace std; int main(void) { int N; int tmp; int count = 0; scanf("%d", &N); for(int i = 0; i < N; i++) { scanf("%d", &tmp); if(tmp % 2 == 0) count++; } if(N - 2 * count > 0) return N - 2 * count; else return 2 * count - N; }