結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
|
提出日時 | 2018-09-19 16:33:27 |
言語 | Nim (2.2.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 3,177 ms |
コンパイル使用メモリ | 67,072 KB |
実行使用メモリ | 10,400 KB |
最終ジャッジ日時 | 2024-07-01 04:40:12 |
合計ジャッジ時間 | 6,901 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 7 |
コンパイルメッセージ
/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]
ソースコード
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)