結果

問題 No.112 ややこしい鶴亀算
ユーザー 61washingmachine
提出日時 2014-12-25 00:24:47
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 464 ms
コンパイル使用メモリ 53,208 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-12 04:58:26
合計ジャッジ時間 1,476 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

//time
//washing_machine61
//No.112 ややこしい鶴亀算

#include<iostream>

using namespace std;

int main(){
	int N, x; 
	int kame = 0; 
	int turu = 0;
	cin >> N;
	for (int i = 0; i < N; i++){
		cin >> x;
		if (x == 2){
			turu++;
		}
		else{
			kame++;
		}
	}
	cout << kame << " " << turu << '\n';
}
0