結果

問題 No.191 供託金
ユーザー regulus
提出日時 2017-11-21 17:57:44
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 262 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 30,208 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 08:17:38
合計ジャッジ時間 970 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#define F(i,n) for(int i = 0;i < n;i++)
#include <stdio.h>
int x(const int a[],int n){int t = 0;F(i,n) t += a[i];return(t);}
int main (void){int n,r=0;int c[100];scanf("%d",&n);F(i,n)scanf("%d",&c[i]);F(i,n){if(c[i]<=x(c,n)*0.1)r+=30;}printf("%d",r);return(0);}
0