結果

問題 No.504 ゲーム大会(ランキング)
ユーザー te-sh
提出日時 2017-12-25 15:41:48
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 644 ms
コンパイル使用メモリ 96,640 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-12 23:15:59
合計ジャッジ時間 2,510 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm, std.conv, std.range, std.stdio, std.string;

void main()
{
  auto n = readln.chomp.to!int;
  auto kp = readln.chomp.to!int;
  writeln(1);

  auto r = 1;
  foreach (i; 0..n-1) {
    auto p = readln.chomp.to!int;
    if (p > kp) ++r;
    writeln(r);
  }
}
0