結果
| 問題 | No.528 10^9と10^9+7と回文 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-14 09:03:16 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 1,000 ms |
| コード長 | 142 bytes |
| 記録 | |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 77,444 KB |
| 最終ジャッジ日時 | 2025-12-04 00:05:51 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
#yuki_528 s=raw_input() n=len(s) m=(n+1)//2 res=int(s[:m])+10**(n/2)-1 if s[:n/2][::-1]>s[m:]: res-=1 print res%(10**9) print res%(10**9+7)