結果

問題 No.528 10^9と10^9+7と回文
ユーザー %20%20
提出日時 2017-06-10 00:14:05
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 225 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 5,412 KB
実行使用メモリ 24,020 KB
最終ジャッジ日時 2023-10-24 03:51:47
合計ジャッジ時間 3,069 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
24,020 KB
testcase_01 AC 4 ms
5,448 KB
testcase_02 AC 4 ms
5,428 KB
testcase_03 AC 4 ms
5,428 KB
testcase_04 AC 5 ms
5,428 KB
testcase_05 AC 4 ms
5,428 KB
testcase_06 AC 4 ms
5,428 KB
testcase_07 AC 4 ms
5,428 KB
testcase_08 AC 5 ms
5,428 KB
testcase_09 AC 4 ms
5,428 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$"='';
$b=($a=1e9)+7;
@N=<>=~/./g;
$K=@N;
$t+="@N[0..$K-1>>1,reverse 0..($K>>1)-1]"le"@N";
--$N[0];
exec"dc -e'
A $K 1-2/$a|A $K 2/$a|+$a+2-@N[0..$K-1>>1] $a%$t++$a%p
A $K 1-2/$b|A $K 2/$b|+$b+2-@N[0..$K-1>>1] $b%$t++$b%p
'"
0