結果

問題 No.1650 Moving Coins
ユーザー tailstails
提出日時 2021-08-21 23:55:07
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,088 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 81,156 KB
最終ジャッジ日時 2024-04-23 14:41:16
合計ジャッジ時間 15,067 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,888 KB
testcase_01 AC 7 ms
6,016 KB
testcase_02 AC 7 ms
6,016 KB
testcase_03 AC 7 ms
6,272 KB
testcase_04 AC 8 ms
6,272 KB
testcase_05 AC 7 ms
6,272 KB
testcase_06 AC 8 ms
6,144 KB
testcase_07 AC 8 ms
6,016 KB
testcase_08 AC 529 ms
45,844 KB
testcase_09 AC 429 ms
43,948 KB
testcase_10 AC 515 ms
47,308 KB
testcase_11 AC 477 ms
47,880 KB
testcase_12 AC 244 ms
28,752 KB
testcase_13 AC 319 ms
29,876 KB
testcase_14 AC 396 ms
42,364 KB
testcase_15 AC 256 ms
23,720 KB
testcase_16 AC 528 ms
51,544 KB
testcase_17 AC 535 ms
52,704 KB
testcase_18 AC 710 ms
59,108 KB
testcase_19 AC 920 ms
80,816 KB
testcase_20 AC 966 ms
81,056 KB
testcase_21 AC 832 ms
81,048 KB
testcase_22 AC 891 ms
81,156 KB
testcase_23 AC 1,088 ms
81,032 KB
testcase_24 AC 8 ms
6,784 KB
testcase_25 AC 8 ms
6,400 KB
testcase_26 AC 864 ms
81,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@a=(0,glob<>);
@b=(0,glob<>);
$m+=abs($a[$_]-=$b[$_])for 1..$n;
print"$m\n";
print"$_ L\n"x$a[$_]for 1..$n;
print"$_ R\n"x-$a[$_]for reverse 1..$n;
0