結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー vwxyzvwxyz
提出日時 2021-07-29 23:34:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 290 ms / 5,000 ms
コード長 818 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 109,264 KB
最終ジャッジ日時 2023-10-12 21:49:57
合計ジャッジ時間 9,133 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 266 ms
92,732 KB
testcase_01 AC 285 ms
109,000 KB
testcase_02 AC 260 ms
91,768 KB
testcase_03 AC 263 ms
91,684 KB
testcase_04 AC 264 ms
91,448 KB
testcase_05 AC 290 ms
109,264 KB
testcase_06 AC 263 ms
91,660 KB
testcase_07 AC 265 ms
91,436 KB
testcase_08 AC 261 ms
91,440 KB
testcase_09 AC 260 ms
91,588 KB
testcase_10 AC 264 ms
91,448 KB
testcase_11 AC 265 ms
91,548 KB
testcase_12 AC 262 ms
91,468 KB
testcase_13 AC 260 ms
91,668 KB
testcase_14 AC 276 ms
103,108 KB
testcase_15 AC 273 ms
96,500 KB
testcase_16 AC 285 ms
105,712 KB
testcase_17 AC 274 ms
96,268 KB
testcase_18 AC 283 ms
105,424 KB
testcase_19 AC 276 ms
101,840 KB
testcase_20 AC 286 ms
109,192 KB
testcase_21 AC 264 ms
92,756 KB
testcase_22 AC 275 ms
98,016 KB
testcase_23 AC 288 ms
108,680 KB
testcase_24 AC 285 ms
109,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
import copy
import decimal
import fractions
import heapq
import itertools
import math
import random
import sys
from collections import Counter,deque,defaultdict
from functools import lru_cache,reduce
from heapq import heappush,heappop,heapify,heappushpop,_heappop_max,_heapify_max
def _heappush_max(heap,item):
    heap.append(item)
    heapq._siftdown_max(heap, 0, len(heap)-1)
def _heappushpop_max(heap, item):
    if heap and item < heap[0]:
        item, heap[0] = heap[0], item
        heapq._siftup_max(heap, 0)
    return item
from math import gcd as GCD, modf
read=sys.stdin.read
readline=sys.stdin.readline
readlines=sys.stdin.readlines

N,*L=map(int,read().split())
cnt=[0]*7
for l in L:
    cnt[l]+=1
m=max(cnt)
for i in range(6,-1,-1):
    if cnt[i]==m:
        ans=i
        break
print(ans)
0