結果

問題 No.112 ややこしい鶴亀算
ユーザー r2en_
提出日時 2017-03-23 20:58:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 63,720 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-05 18:53:52
合計ジャッジ時間 1,088 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

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 == 2){ c++; }
        if(A == 4){ t++; }
    }
    cout << t << " " << c << " " << endl;
    return 0;
}
0