結果

問題 No.528 10^9と10^9+7と回文
ユーザー hanorverhanorver
提出日時 2017-06-10 11:09:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 112 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 8,360 KB
最終ジャッジ日時 2023-10-01 00:58:03
合計ジャッジ時間 1,803 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,808 KB
testcase_01 AC 19 ms
7,788 KB
testcase_02 AC 18 ms
7,860 KB
testcase_03 AC 17 ms
7,820 KB
testcase_04 AC 20 ms
7,776 KB
testcase_05 AC 17 ms
7,812 KB
testcase_06 AC 16 ms
7,900 KB
testcase_07 AC 16 ms
7,868 KB
testcase_08 AC 16 ms
7,848 KB
testcase_09 AC 16 ms
7,944 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 15 ms
7,812 KB
testcase_23 AC 16 ms
7,872 KB
testcase_24 AC 16 ms
7,936 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
n=len(s)
m=(n+1)//2
for d in[0,7]:print((int(s[:m])+pow(10,n//2)-1-(s[:n//2][::-1]>s[m:]))%int(d+1e9))
0