結果
問題 |
No.528 10^9と10^9+7と回文
|
ユーザー |
![]() |
提出日時 | 2017-06-10 16:12:45 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 31 ms |
コンパイル使用メモリ | 6,684 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 15:41:43 |
合計ジャッジ時間 | 869 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 17 |
コンパイルメッセージ
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));