結果

問題 No.1013 〇マス進む
ユーザー tailstails
提出日時 2021-02-12 10:24:38
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,169 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 891 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 37,196 KB
最終ジャッジ日時 2023-09-26 09:55:05
合計ジャッジ時間 26,962 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,192 KB
testcase_01 AC 6 ms
5,324 KB
testcase_02 AC 6 ms
5,260 KB
testcase_03 AC 8 ms
5,264 KB
testcase_04 AC 7 ms
5,296 KB
testcase_05 AC 9 ms
5,284 KB
testcase_06 AC 7 ms
5,268 KB
testcase_07 AC 10 ms
5,468 KB
testcase_08 AC 8 ms
5,468 KB
testcase_09 AC 9 ms
5,440 KB
testcase_10 AC 9 ms
5,352 KB
testcase_11 AC 8 ms
5,304 KB
testcase_12 AC 9 ms
5,416 KB
testcase_13 AC 26 ms
6,480 KB
testcase_14 AC 307 ms
20,060 KB
testcase_15 AC 472 ms
29,696 KB
testcase_16 AC 417 ms
27,692 KB
testcase_17 AC 226 ms
18,292 KB
testcase_18 AC 306 ms
21,268 KB
testcase_19 AC 155 ms
14,828 KB
testcase_20 AC 516 ms
35,400 KB
testcase_21 AC 214 ms
17,164 KB
testcase_22 AC 302 ms
21,868 KB
testcase_23 AC 92 ms
10,572 KB
testcase_24 AC 587 ms
36,292 KB
testcase_25 AC 557 ms
35,684 KB
testcase_26 AC 101 ms
10,572 KB
testcase_27 AC 190 ms
16,652 KB
testcase_28 AC 86 ms
10,724 KB
testcase_29 AC 503 ms
34,784 KB
testcase_30 AC 190 ms
15,272 KB
testcase_31 AC 366 ms
24,676 KB
testcase_32 AC 255 ms
19,648 KB
testcase_33 AC 497 ms
19,648 KB
testcase_34 AC 754 ms
28,520 KB
testcase_35 AC 773 ms
26,920 KB
testcase_36 AC 55 ms
6,740 KB
testcase_37 AC 52 ms
6,772 KB
testcase_38 AC 851 ms
30,712 KB
testcase_39 AC 274 ms
13,420 KB
testcase_40 AC 811 ms
28,332 KB
testcase_41 AC 195 ms
10,808 KB
testcase_42 AC 467 ms
18,904 KB
testcase_43 AC 275 ms
13,888 KB
testcase_44 AC 506 ms
19,884 KB
testcase_45 AC 435 ms
18,080 KB
testcase_46 AC 214 ms
11,524 KB
testcase_47 AC 417 ms
18,812 KB
testcase_48 AC 518 ms
21,424 KB
testcase_49 AC 802 ms
28,116 KB
testcase_50 AC 674 ms
24,572 KB
testcase_51 AC 571 ms
22,344 KB
testcase_52 AC 121 ms
8,760 KB
testcase_53 AC 172 ms
10,240 KB
testcase_54 AC 751 ms
26,880 KB
testcase_55 AC 226 ms
11,560 KB
testcase_56 AC 1,019 ms
32,720 KB
testcase_57 AC 675 ms
24,036 KB
testcase_58 AC 1,120 ms
37,148 KB
testcase_59 AC 1,169 ms
37,020 KB
testcase_60 AC 1,127 ms
36,932 KB
testcase_61 AC 518 ms
37,052 KB
testcase_62 AC 340 ms
37,196 KB
testcase_63 AC 6 ms
5,092 KB
testcase_64 AC 6 ms
5,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$k)=glob<>;
@p=glob<>;
@a=0..$#p;
while($k){
	map$_+=$p[$_%$n],@a if$k&1;
	@p=map$p[$_]+$p[($_+$p[$_])%$n],0..$#p;
	$k>>=1;
}
print map{$_+1,$/}@a;
0