結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー MaxMellonMaxMellon
提出日時 2014-12-11 23:52:00
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 814 bytes
コンパイル時間 873 ms
コンパイル使用メモリ 24,024 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-02 14:10:50
合計ジャッジ時間 3,904 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 RE -
testcase_06 AC 1 ms
4,380 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
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 #

   #define MAX 1000
   #define TYPE_NUM 6
   #define BEGEIN {
   #define END }
   #define FOR for (
   #define IF if (
   #define DO ) {
   #define SCAN scanf
   #define INT int
   #define GETINT "%d",
   #define PRINT printf
   #define OUTINT "%d\n",
   #define EXIT return 0;

   #include <stdio.h>

   int main(int argc, char *argv[])
   BEGEIN

     INT i, max, data_num;
     INT arr[MAX];
     INT bin[TYPE_NUM] = {0};

     SCAN(GETINT &data_num);

     FOR i = 0; i < data_num; i++ DO
       SCAN(GETINT &arr[i]);
     END

     FOR i = 0; i < data_num; i++ DO
       bin[arr[i]]++;
     END

     max = bin[0];
     FOR i = 1; i < TYPE_NUM; i++ DO
       IF max <= bin[i] DO
         max = bin[i];
       END
     END

     PRINT(OUTINT max);

     EXIT
   END
0