結果

問題 No.112 ややこしい鶴亀算
ユーザー HaijinnHaijinn
提出日時 2018-02-16 17:51:28
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 1,202 ms
コンパイル使用メモリ 25,132 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-09-02 17:50:26
合計ジャッジ時間 2,148 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,368 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,372 KB
testcase_03 AC 1 ms
4,372 KB
testcase_04 AC 1 ms
4,372 KB
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 1 ms
4,372 KB
testcase_07 AC 1 ms
4,372 KB
testcase_08 WA -
testcase_09 AC 0 ms
4,368 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 0 ms
4,368 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 1 ms
4,368 KB
testcase_19 WA -
testcase_20 AC 0 ms
4,368 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 1 ms
4,368 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int main(void)
{
int n;
int a[50];
int i;
int z=0,x=0;
scanf("%d",&n);
for(i=0;i<n;i++){
	
	scanf("%d",&a[i]);

	
}
for(i=0;i<n;i++){
		if(a[i]%4==0){
		z+=a[i]/4;
		//printf("%d\n",z);
	}
}
printf("%d %d\n",n-z,z);


	return 0;
}
0