結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー apahieapahie
提出日時 2019-04-07 21:24:10
言語 Nim
(2.0.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 175 bytes
コンパイル時間 3,207 ms
コンパイル使用メモリ 68,640 KB
実行使用メモリ 17,336 KB
最終ジャッジ日時 2023-09-14 15:35:31
合計ジャッジ時間 4,588 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 31 ms
16,016 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 27 ms
17,336 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
4,376 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 17 ms
10,028 KB
testcase_15 AC 8 ms
5,820 KB
testcase_16 AC 21 ms
12,264 KB
testcase_17 AC 7 ms
5,696 KB
testcase_18 AC 20 ms
12,192 KB
testcase_19 AC 16 ms
10,264 KB
testcase_20 AC 32 ms
17,296 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 9 ms
6,896 KB
testcase_23 AC 29 ms
15,356 KB
testcase_24 AC 30 ms
15,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils, tables

let
  n, l = stdin.readLine.split.map parseInt
  t = l.toCountTable
var ans =0
for k, v in t:
  if v == t.largest.val:
    ans = k
echo ans
0