結果

問題 No.191 供託金
コンテスト
ユーザー Tsu0664
提出日時 2015-05-20 23:15:38
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 356 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 149 ms
コンパイル使用メモリ 38,740 KB
最終ジャッジ日時 2026-02-23 18:23:18
ジャッジサーバーID
(参考情報)
judge5 / judge2
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>

int main(void) {
	// your code goes here
	int n, c[100], i, total = 0, count = 0;
	fscanf(stdin, "%d", &n);
	for(i = 0; i < n; i++)
		fscanf(stdin, "%d", &c[i]);
	
	for(i = 0; i < n; i++)
		total += c[i];
		
	total = total / 10;
	
	for(i = 0; i < n; i++){
		if(c[i] <= total)
			count++;
	}
	
	printf("%d\n", count * 30);
	
	return 0;
}
0