結果

問題 No.504 ゲーム大会(ランキング)
ユーザー mkanenobumkanenobu
提出日時 2018-09-19 16:33:27
言語 Nim
(2.0.2)
結果
TLE  
実行時間 -
コード長 277 bytes
コンパイル時間 2,970 ms
コンパイル使用メモリ 68,652 KB
実行使用メモリ 14,240 KB
最終ジャッジ日時 2023-09-13 20:10:41
合計ジャッジ時間 6,709 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
8,752 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
/home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'math' [UnusedImport]

ソースコード

diff #

import sequtils, strutils, algorithm, math

var
  n = readLine(stdin).parseInt
  a:seq[int] = @[]
  k_point:int
k_point = readLine(stdin).parseInt
a.add(k_point)
echo 1
for i in 1..<n:
  a.add(readLine(stdin).parseInt)
  a.sort(cmp[int])
  a.reverse
  echo(a.find(k_point) + 1)
0