結果

問題 No.504 ゲーム大会(ランキング)
ユーザー 6soukiti29
提出日時 2017-07-02 13:35:20
言語 Nim
(2.2.0)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 2,842 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 01:33:19
合計ジャッジ時間 5,087 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]

ソースコード

diff #

import sequtils,strutils

var
    N = stdin.readline.parseInt
    a : int
    k : int
    rank : int
k = stdin.readline.parseInt
rank = 1
echo 1
for n in 1..<N:
    a = stdin.readline.parseInt
    if a > k:
        rank += 1
    echo rank
0