結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-14 00:57:17 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 15:53:49 |
| 合計ジャッジ時間 | 937 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 23 |
ソースコード
#include <stdio.h>
int main(void)
{
int hyou[100];
int n = fgetc(stdin);
int i, border;
int total = 0;
int answer = 0;
for(i = 0; i < n; i++){
hyou[i] = fgetc(stdin);
total += hyou[i];
}
border = total / 10;
for(i = 0; i < n; i++){
if(hyou[i] <= border){
answer++;
}
}
printf("%d\n", answer * 30);
return 0;
}