結果

問題 No.606 カラフルタイル
ユーザー %20%20
提出日時 2017-12-06 00:55:40
言語 Perl
(5.38.0)
結果
AC  
実行時間 218 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 7,080 KB
実行使用メモリ 26,752 KB
最終ジャッジ日時 2023-08-19 05:34:06
合計ジャッジ時間 4,034 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,160 KB
testcase_01 AC 6 ms
5,372 KB
testcase_02 AC 7 ms
5,176 KB
testcase_03 AC 6 ms
5,272 KB
testcase_04 AC 6 ms
5,160 KB
testcase_05 AC 6 ms
5,072 KB
testcase_06 AC 6 ms
5,312 KB
testcase_07 AC 6 ms
5,008 KB
testcase_08 AC 6 ms
5,072 KB
testcase_09 AC 6 ms
5,004 KB
testcase_10 AC 6 ms
5,328 KB
testcase_11 AC 6 ms
5,220 KB
testcase_12 AC 6 ms
5,092 KB
testcase_13 AC 16 ms
6,596 KB
testcase_14 AC 7 ms
6,716 KB
testcase_15 AC 7 ms
5,164 KB
testcase_16 AC 109 ms
19,848 KB
testcase_17 AC 198 ms
26,096 KB
testcase_18 AC 166 ms
23,144 KB
testcase_19 AC 154 ms
22,532 KB
testcase_20 AC 218 ms
26,752 KB
testcase_21 AC 163 ms
23,660 KB
testcase_22 AC 162 ms
23,508 KB
testcase_23 AC 168 ms
23,612 KB
testcase_24 AC 198 ms
24,540 KB
testcase_25 AC 148 ms
23,028 KB
testcase_26 AC 206 ms
26,396 KB
testcase_27 AC 199 ms
26,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::Q" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($N,$K,$Q)=glob<>;
@_=(0)x$K;
for(reverse<>){
	($a,$b,$c)=split;
	if(!$$a[$b]++){
		++$$a;
		$_[$c-1]+=$N-${$a^v17}
	}
}
$_[0]=$N*$N;
$_[0]-=$_ for@_[1..$K-1];
$,=$/;
print@_
0