結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー irisAshirisAsh
提出日時 2017-08-14 15:09:56
言語 JavaScript
(node v20.8.0)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 33 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 47,348 KB
最終ジャッジ日時 2023-08-03 02:15:21
合計ジャッジ時間 3,491 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
42,236 KB
testcase_01 AC 95 ms
47,044 KB
testcase_02 AC 75 ms
42,188 KB
testcase_03 AC 76 ms
42,304 KB
testcase_04 AC 78 ms
42,264 KB
testcase_05 AC 96 ms
47,240 KB
testcase_06 AC 80 ms
42,192 KB
testcase_07 AC 77 ms
42,212 KB
testcase_08 AC 78 ms
42,280 KB
testcase_09 AC 76 ms
42,228 KB
testcase_10 AC 76 ms
42,276 KB
testcase_11 AC 77 ms
42,168 KB
testcase_12 AC 76 ms
42,188 KB
testcase_13 AC 76 ms
42,308 KB
testcase_14 AC 88 ms
46,360 KB
testcase_15 AC 82 ms
45,792 KB
testcase_16 AC 93 ms
46,748 KB
testcase_17 AC 82 ms
45,852 KB
testcase_18 AC 90 ms
46,796 KB
testcase_19 AC 87 ms
46,304 KB
testcase_20 AC 94 ms
47,180 KB
testcase_21 AC 76 ms
42,244 KB
testcase_22 AC 83 ms
45,992 KB
testcase_23 AC 93 ms
46,896 KB
testcase_24 AC 94 ms
47,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
let a = Array.from(new Array(7)).fill(0)
i[1].split(' ').forEach((e) => a[e] += 1)
console.log(a.lastIndexOf(Math.max.apply(null, a)))
0