結果

問題 No.112 ややこしい鶴亀算
ユーザー r2en_r2en_
提出日時 2017-03-23 21:10:23
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 487 ms
コンパイル使用メモリ 62,788 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-19 06:43:44
合計ジャッジ時間 1,677 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 WA -
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 WA -
testcase_11 AC 2 ms
4,376 KB
testcase_12 WA -
testcase_13 AC 2 ms
4,380 KB
testcase_14 WA -
testcase_15 AC 2 ms
4,380 KB
testcase_16 WA -
testcase_17 AC 1 ms
4,376 KB
testcase_18 WA -
testcase_19 AC 1 ms
4,376 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 WA -
testcase_22 AC 2 ms
4,380 KB
testcase_23 WA -
testcase_24 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int N = 0; int A = 0;
    int t = 0; int c = 0;
    cin >> N;
    for(int i = 0; i < N; ++i){
        cin >> A;
        if(A % 4 == 0){ t++; }
        else if(A % 2 == 0){ c++; }
    }
    cout << c << " " << t << endl;
    return 0;
}
0