結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー funakoshifunakoshi
提出日時 2019-08-08 16:36:21
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 418 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 28,244 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-26 00:37:26
合計ジャッジ時間 3,296 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    int numofans,level;
    int cnt[10]={0};
    scanf("%d",&numofans);
    for(int i=0;i<numofans;i++)
    {
        scanf("%d",&level);
        cnt[level]++;
    }
    int max=0;
    for(int i=1;i<=numofans;i++)
    {
        if(cnt[i]>=max)
        {
            max=cnt[i];
            level=i;
        }
    }
    printf("%d",level);
}
0