結果
問題 | No.706 多眼生物の調査 |
ユーザー | 双六 |
提出日時 | 2020-08-04 23:35:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 113 ms / 2,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 87,084 KB |
実行使用メモリ | 76,312 KB |
最終ジャッジ日時 | 2023-10-13 01:39:48 |
合計ジャッジ時間 | 2,018 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 96 ms
71,612 KB |
testcase_01 | AC | 95 ms
71,456 KB |
testcase_02 | AC | 93 ms
71,628 KB |
testcase_03 | AC | 95 ms
71,612 KB |
testcase_04 | AC | 97 ms
72,400 KB |
testcase_05 | AC | 101 ms
72,396 KB |
testcase_06 | AC | 113 ms
76,312 KB |
testcase_07 | AC | 93 ms
71,784 KB |
ソースコード
# import sys; input = sys.stdin.buffer.readline # sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") def getlist(): return list(map(int, input().split())) #処理内容 def main(): N = int(input()) A = [0] * 1001 for i in range(N): s = input() n = len(s) - 2 A[n] += 1 val = 0 ans = 0 for i in range(1001): if A[i] >= val: ans = i val = A[i] print(ans) if __name__ == '__main__': main()