結果

問題 No.606 カラフルタイル
ユーザー %20%20
提出日時 2017-12-06 00:55:40
言語 Perl
(5.38.2)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 27,520 KB
最終ジャッジ日時 2024-05-06 12:44:41
合計ジャッジ時間 3,328 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
5,888 KB
testcase_01 AC 7 ms
5,888 KB
testcase_02 AC 8 ms
6,016 KB
testcase_03 AC 7 ms
5,888 KB
testcase_04 AC 7 ms
5,888 KB
testcase_05 AC 7 ms
5,888 KB
testcase_06 AC 7 ms
5,888 KB
testcase_07 AC 7 ms
5,888 KB
testcase_08 AC 7 ms
5,888 KB
testcase_09 AC 6 ms
5,888 KB
testcase_10 AC 8 ms
5,888 KB
testcase_11 AC 7 ms
6,016 KB
testcase_12 AC 6 ms
5,888 KB
testcase_13 AC 15 ms
7,424 KB
testcase_14 AC 8 ms
7,296 KB
testcase_15 AC 8 ms
6,016 KB
testcase_16 AC 85 ms
20,608 KB
testcase_17 AC 158 ms
27,008 KB
testcase_18 AC 127 ms
23,808 KB
testcase_19 AC 126 ms
23,296 KB
testcase_20 AC 185 ms
27,520 KB
testcase_21 AC 140 ms
24,320 KB
testcase_22 AC 141 ms
24,320 KB
testcase_23 AC 140 ms
24,320 KB
testcase_24 AC 163 ms
25,216 KB
testcase_25 AC 120 ms
23,936 KB
testcase_26 AC 174 ms
27,008 KB
testcase_27 AC 165 ms
27,008 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