結果

問題 No.706 多眼生物の調査
ユーザー nebukuro09nebukuro09
提出日時 2018-06-29 23:36:36
言語 Python2
(2.7.18)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 548 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,312 KB
最終ジャッジ日時 2023-09-13 15:45:32
合計ジャッジ時間 1,127 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,160 KB
testcase_01 AC 14 ms
6,180 KB
testcase_02 AC 13 ms
6,088 KB
testcase_03 AC 13 ms
6,176 KB
testcase_04 AC 14 ms
6,112 KB
testcase_05 AC 14 ms
6,232 KB
testcase_06 AC 17 ms
6,312 KB
testcase_07 AC 13 ms
6,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
D = [0 for _ in xrange(10000)]
for i in xrange(N):
    D[raw_input().count('^')] += 1
m = -1
v = -1
for i in xrange(9999, -1, -1):
    if D[i] > v:
        m = i
        v = D[i]
print m
0