結果

問題 No.528 10^9と10^9+7と回文
ユーザー hanorverhanorver
提出日時 2017-06-10 11:37:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 105 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 11,768 KB
実行使用メモリ 10,304 KB
最終ジャッジ日時 2023-10-24 20:24:45
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 29 ms
10,100 KB
testcase_03 AC 28 ms
10,100 KB
testcase_04 AC 29 ms
10,100 KB
testcase_05 AC 28 ms
10,100 KB
testcase_06 AC 28 ms
10,100 KB
testcase_07 AC 28 ms
10,100 KB
testcase_08 AC 28 ms
10,100 KB
testcase_09 AC 28 ms
10,100 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 28 ms
10,100 KB
testcase_23 AC 28 ms
10,100 KB
testcase_24 AC 28 ms
10,100 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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