結果

問題 No.112 ややこしい鶴亀算
ユーザー eri
提出日時 2015-07-07 23:55:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 53,844 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 01:33:47
合計ジャッジ時間 1,034 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(void){
	int n; cin >> n;
	int a[50], t = 0, k = 0;
	for (int i = 0; i < n; i++){
		cin >> a[i];
		(a[i] == 4) ? t++ : k++;
	}
	cout << t << " " << k << endl;
	return 0;
}
0