結果
問題 | No.528 10^9と10^9+7と回文 |
ユーザー | arukuka |
提出日時 | 2017-06-10 16:12:45 |
言語 | Perl (5.38.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 596 ms |
コンパイル使用メモリ | 5,424 KB |
実行使用メモリ | 5,972 KB |
最終ジャッジ日時 | 2023-10-24 20:30:29 |
合計ジャッジ時間 | 1,364 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
5,376 KB |
testcase_01 | AC | 3 ms
5,376 KB |
testcase_02 | AC | 3 ms
5,376 KB |
testcase_03 | AC | 3 ms
5,376 KB |
testcase_04 | AC | 3 ms
5,376 KB |
testcase_05 | AC | 3 ms
5,376 KB |
testcase_06 | AC | 3 ms
5,376 KB |
testcase_07 | AC | 4 ms
5,376 KB |
testcase_08 | AC | 3 ms
5,376 KB |
testcase_09 | AC | 3 ms
5,376 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 3 ms
5,376 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$_=<>; $n=length($_); $m=$n/2; $s=substr($_,0,$m); $a=$s-(substr($s.reverse, $m*2, $m)>substr($_,$n-($n + 1)/2,$m)?2:1)+10**($n-1-int($m)); printf"%d\n%d\n",int($a%1e9),int($a%(1e9+7));