結果

問題 No.451 575
ユーザー tailstails
提出日時 2016-12-03 00:50:21
言語 Perl
(5.38.0)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 40,136 KB
最終ジャッジ日時 2023-08-25 03:03:02
合計ジャッジ時間 6,133 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,588 KB
testcase_01 AC 2 ms
4,452 KB
testcase_02 AC 2 ms
4,612 KB
testcase_03 AC 2 ms
4,552 KB
testcase_04 AC 2 ms
4,448 KB
testcase_05 AC 12 ms
6,588 KB
testcase_06 AC 35 ms
10,972 KB
testcase_07 AC 201 ms
39,268 KB
testcase_08 AC 3 ms
4,536 KB
testcase_09 AC 4 ms
4,836 KB
testcase_10 AC 48 ms
13,536 KB
testcase_11 AC 142 ms
31,908 KB
testcase_12 AC 194 ms
40,136 KB
testcase_13 AC 192 ms
40,096 KB
testcase_14 AC 3 ms
4,564 KB
testcase_15 AC 8 ms
5,708 KB
testcase_16 AC 30 ms
10,100 KB
testcase_17 AC 174 ms
38,344 KB
testcase_18 AC 182 ms
38,256 KB
testcase_19 AC 115 ms
26,632 KB
testcase_20 AC 9 ms
5,956 KB
testcase_21 AC 4 ms
4,948 KB
testcase_22 AC 2 ms
4,484 KB
testcase_23 AC 196 ms
40,048 KB
testcase_24 AC 111 ms
25,488 KB
testcase_25 AC 3 ms
4,576 KB
testcase_26 AC 2 ms
4,584 KB
testcase_27 AC 3 ms
4,716 KB
testcase_28 AC 5 ms
4,936 KB
testcase_29 AC 20 ms
8,088 KB
testcase_30 AC 177 ms
38,228 KB
testcase_31 AC 3 ms
4,484 KB
testcase_32 AC 65 ms
16,336 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

@b=<>;map{@a=$v=1-$m;$m=0;map{push@a,$v=($v-$b[$_])*(-1)**$_;$m=$v-1if$m>=$v}1..$#b}0,1;print$m<0?-1:join$/,@a+0,@a
0