結果

問題 No.714 回転寿司屋のシミュレート
ユーザー tailstails
提出日時 2018-07-13 22:39:30
言語 Perl
(5.38.2)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 5,460 KB
実行使用メモリ 5,916 KB
最終ジャッジ日時 2023-07-30 09:54:13
合計ジャッジ時間 1,957 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,136 KB
testcase_01 AC 7 ms
5,192 KB
testcase_02 AC 7 ms
5,304 KB
testcase_03 AC 7 ms
5,168 KB
testcase_04 AC 9 ms
5,116 KB
testcase_05 AC 13 ms
5,324 KB
testcase_06 AC 20 ms
5,388 KB
testcase_07 AC 26 ms
5,572 KB
testcase_08 AC 41 ms
5,916 KB
testcase_09 AC 19 ms
5,336 KB
testcase_10 AC 16 ms
5,264 KB
testcase_11 AC 18 ms
5,556 KB
testcase_12 AC 16 ms
5,364 KB
testcase_13 AC 16 ms
5,252 KB
testcase_14 AC 16 ms
5,248 KB
testcase_15 AC 16 ms
5,344 KB
testcase_16 AC 16 ms
5,388 KB
testcase_17 AC 15 ms
5,360 KB
testcase_18 AC 15 ms
5,460 KB
testcase_19 AC 16 ms
5,316 KB
testcase_20 AC 16 ms
5,388 KB
testcase_21 AC 16 ms
5,312 KB
testcase_22 AC 12 ms
5,208 KB
testcase_23 AC 13 ms
5,152 KB
testcase_24 AC 12 ms
5,420 KB
testcase_25 AC 12 ms
5,268 KB
testcase_26 AC 11 ms
5,168 KB
testcase_27 AC 11 ms
5,264 KB
testcase_28 AC 12 ms
5,200 KB
testcase_29 AC 11 ms
5,280 KB
testcase_30 AC 6 ms
5,188 KB
testcase_31 AC 6 ms
5,300 KB
testcase_32 AC 7 ms
5,200 KB
testcase_33 AC 6 ms
5,108 KB
testcase_34 AC 7 ms
5,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
for(<>){
	if(/^0 (\d+) \d+/){
		$i=$1;
		for$a(glob$'){
			$$i{$a}++;
		}
	}
	if(/^1 /){
		$a=$';chop$a;
		for$i(1..20,-1){
			if($i<0||$$i{$a}){
				--$$i{$a};
				print$i,$/;
				last;
			}
		}
	}
	if(/^2 (\d+)/){
		%$1=();
	}
}
0