結果

問題 No.504 ゲーム大会(ランキング)
コンテスト
ユーザー mkanenobu
提出日時 2018-09-19 16:33:27
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
TLE  
実行時間 -
コード長 277 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,506 ms
コンパイル使用メモリ 70,516 KB
実行使用メモリ 15,944 KB
最終ジャッジ日時 2026-03-21 23:04:04
合計ジャッジ時間 27,451 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 TLE * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]

ソースコード

diff #
raw source code

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