結果

問題 No.504 ゲーム大会(ランキング)
ユーザー motimoti
提出日時 2018-05-20 14:37:14
言語 Perl
(5.38.2)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,140 KB
最終ジャッジ日時 2023-09-11 00:01:37
合計ジャッジ時間 1,737 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,948 KB
testcase_01 AC 4 ms
4,844 KB
testcase_02 AC 5 ms
4,956 KB
testcase_03 AC 5 ms
4,904 KB
testcase_04 AC 5 ms
4,872 KB
testcase_05 AC 5 ms
4,848 KB
testcase_06 AC 5 ms
4,960 KB
testcase_07 AC 45 ms
5,108 KB
testcase_08 AC 43 ms
5,140 KB
testcase_09 AC 45 ms
4,968 KB
testcase_10 AC 41 ms
4,908 KB
testcase_11 AC 45 ms
5,124 KB
testcase_12 AC 45 ms
4,952 KB
testcase_13 AC 40 ms
4,840 KB
testcase_14 AC 45 ms
4,824 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#/usr/bin/env perl

use strict;
use warnings;

$_ = <>;
my $k = <>; chomp $k;
my $count = 1;
print "1\n";
while (defined(my $m = <>)) {
  chomp $m;
  if ($k < $m) {
    $count++;
  }
  print "$count\n";
}
0