結果

問題 No.628 Tagの勢い
ユーザー tailstails
提出日時 2018-01-05 21:25:59
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 151 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2024-04-16 19:56:23
合計ジャッジ時間 939 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 8 ms
5,888 KB
testcase_02 WA -
testcase_03 AC 8 ms
5,760 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 8 ms
5,760 KB
testcase_07 AC 8 ms
5,888 KB
testcase_08 AC 8 ms
5,888 KB
testcase_09 AC 7 ms
5,888 KB
testcase_10 AC 9 ms
5,888 KB
testcase_11 AC 8 ms
6,016 KB
testcase_12 AC 19 ms
5,760 KB
testcase_13 AC 20 ms
5,760 KB
testcase_14 AC 20 ms
5,760 KB
testcase_15 AC 19 ms
5,888 KB
testcase_16 AC 14 ms
5,760 KB
testcase_17 WA -
testcase_18 AC 7 ms
5,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::m" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

for(1..<>){
    <>;
    ($m,$s)=glob<>;
    for(glob<>){
	$h{$_}+=$s;
    }
}
@a=sort{$h{$b}<=>$h{$a}||$a cmp$b}keys%h;
print "$_ $h{$_}\n"for@a[0..9];
0