結果

問題 No.1734 Decreasing Elements
ユーザー tailstails
提出日時 2021-11-17 17:22:37
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,411 ms / 3,000 ms
コード長 195 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 5,360 KB
実行使用メモリ 93,176 KB
最終ジャッジ日時 2023-08-25 11:35:43
合計ジャッジ時間 22,262 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,152 KB
testcase_01 AC 6 ms
5,228 KB
testcase_02 AC 7 ms
5,160 KB
testcase_03 AC 7 ms
5,096 KB
testcase_04 AC 7 ms
5,268 KB
testcase_05 AC 6 ms
5,168 KB
testcase_06 AC 7 ms
5,400 KB
testcase_07 AC 534 ms
44,480 KB
testcase_08 AC 523 ms
42,216 KB
testcase_09 AC 376 ms
25,352 KB
testcase_10 AC 427 ms
29,008 KB
testcase_11 AC 1,002 ms
58,780 KB
testcase_12 AC 490 ms
34,160 KB
testcase_13 AC 731 ms
52,528 KB
testcase_14 AC 1,367 ms
79,720 KB
testcase_15 AC 1,009 ms
68,840 KB
testcase_16 AC 1,411 ms
89,116 KB
testcase_17 AC 1,360 ms
83,108 KB
testcase_18 AC 1,350 ms
85,844 KB
testcase_19 AC 862 ms
62,672 KB
testcase_20 AC 867 ms
62,508 KB
testcase_21 AC 1,046 ms
78,604 KB
testcase_22 AC 1,048 ms
78,460 KB
testcase_23 AC 1,213 ms
93,176 KB
testcase_24 AC 1,273 ms
83,440 KB
testcase_25 AC 1,190 ms
81,484 KB
testcase_26 AC 1,180 ms
81,384 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub r{/./?$_=&r:0for$u[$r=$_];$r}
sub u{($a,$b)=map r,@_;@u[$b,$a]=$a}
<>;
$h=3e5;
map{
	++$%,$x*2<$l+$h?
	map{u$x++,$l++}$l..$x-1:
	map{u--$h+$l-$x,$h}$x..$h-1
    if($x=r)-$l;
}glob<>;
print$%;
0