結果

問題 No.112 ややこしい鶴亀算
ユーザー yicode
提出日時 2023-05-09 12:57:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 1,579 ms
コンパイル使用メモリ 168,216 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 00:07:49
合計ジャッジ時間 2,470 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
int main () {
    long long N; cin >> N;
    vector<long> A(N);
    for(int i = 0; i < N; i++) cin >> A[i];
    long long x = 0;
    long long y = 0;
    for(int i = 0; i < N; i++) {
        if(A[i] % 4 == 0) {
            y++;
        }else if(A[i] % 2 == 0) {
            x++;
        }
    }
    cout << x<< " " << y << endl;
}
0