結果

問題 No.112 ややこしい鶴亀算
ユーザー u_gf22
提出日時 2017-06-17 10:44:13
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-01 09:28:04
合計ジャッジ時間 884 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int N;
	int a[100], i;
	int turu = 0, kame = 0;
	scanf("%d", &N);
	for (i = 0; i<N; i++) {
		scanf("%d", &a[i]);
		if (a[i] == 2) ++turu;
		else ++kame;

	}

	printf("%d %d\n", kame, turu);



	return 0;
}
0