結果

問題 No.491 10^9+1と回文
ユーザー nishigakenishigake
提出日時 2022-05-30 02:13:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 350 ms
コンパイル使用メモリ 11,752 KB
実行使用メモリ 10,088 KB
最終ジャッジ日時 2023-10-21 00:16:49
合計ジャッジ時間 13,116 ms
ジャッジサーバーID
(参考情報)
judge9 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
10,056 KB
testcase_01 AC 93 ms
10,056 KB
testcase_02 AC 94 ms
10,056 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 92 ms
10,056 KB
testcase_08 AC 93 ms
10,056 KB
testcase_09 AC 93 ms
10,056 KB
testcase_10 AC 93 ms
10,056 KB
testcase_11 AC 94 ms
10,056 KB
testcase_12 AC 93 ms
10,056 KB
testcase_13 AC 93 ms
10,056 KB
testcase_14 WA -
testcase_15 AC 92 ms
10,056 KB
testcase_16 AC 92 ms
10,056 KB
testcase_17 AC 93 ms
10,056 KB
testcase_18 AC 92 ms
10,056 KB
testcase_19 AC 93 ms
10,056 KB
testcase_20 AC 92 ms
10,056 KB
testcase_21 AC 93 ms
10,056 KB
testcase_22 AC 93 ms
10,056 KB
testcase_23 WA -
testcase_24 AC 92 ms
10,056 KB
testcase_25 AC 93 ms
10,056 KB
testcase_26 AC 92 ms
10,056 KB
testcase_27 AC 94 ms
10,056 KB
testcase_28 AC 93 ms
10,056 KB
testcase_29 AC 92 ms
10,056 KB
testcase_30 AC 92 ms
10,056 KB
testcase_31 AC 94 ms
10,056 KB
testcase_32 AC 94 ms
10,056 KB
testcase_33 AC 92 ms
10,056 KB
testcase_34 AC 94 ms
10,056 KB
testcase_35 AC 92 ms
10,056 KB
testcase_36 AC 93 ms
10,056 KB
testcase_37 AC 93 ms
10,056 KB
testcase_38 AC 93 ms
10,056 KB
testcase_39 AC 93 ms
10,056 KB
testcase_40 AC 94 ms
10,056 KB
testcase_41 AC 93 ms
10,056 KB
testcase_42 AC 94 ms
10,056 KB
testcase_43 AC 94 ms
10,056 KB
testcase_44 AC 98 ms
10,056 KB
testcase_45 AC 95 ms
10,056 KB
testcase_46 AC 93 ms
10,056 KB
testcase_47 AC 92 ms
10,056 KB
testcase_48 AC 93 ms
10,056 KB
testcase_49 AC 93 ms
10,056 KB
testcase_50 AC 94 ms
10,056 KB
testcase_51 AC 93 ms
10,056 KB
testcase_52 AC 94 ms
10,056 KB
testcase_53 AC 99 ms
10,056 KB
testcase_54 AC 93 ms
10,056 KB
testcase_55 AC 92 ms
10,056 KB
testcase_56 AC 92 ms
10,056 KB
testcase_57 AC 93 ms
10,056 KB
testcase_58 WA -
testcase_59 AC 92 ms
10,056 KB
testcase_60 AC 94 ms
10,056 KB
testcase_61 AC 93 ms
10,056 KB
testcase_62 AC 94 ms
10,056 KB
testcase_63 WA -
testcase_64 AC 92 ms
10,056 KB
testcase_65 AC 92 ms
10,056 KB
testcase_66 AC 94 ms
10,056 KB
testcase_67 WA -
testcase_68 AC 93 ms
10,056 KB
testcase_69 AC 93 ms
10,056 KB
testcase_70 AC 93 ms
10,056 KB
testcase_71 AC 93 ms
10,056 KB
testcase_72 AC 93 ms
10,056 KB
testcase_73 AC 93 ms
10,056 KB
testcase_74 AC 92 ms
10,056 KB
testcase_75 AC 92 ms
10,056 KB
testcase_76 AC 94 ms
10,056 KB
testcase_77 AC 92 ms
10,056 KB
testcase_78 AC 94 ms
10,056 KB
testcase_79 AC 92 ms
10,056 KB
testcase_80 AC 93 ms
10,056 KB
testcase_81 AC 93 ms
10,056 KB
testcase_82 AC 92 ms
10,056 KB
testcase_83 AC 94 ms
10,056 KB
testcase_84 AC 93 ms
10,056 KB
testcase_85 AC 94 ms
10,056 KB
testcase_86 AC 95 ms
10,056 KB
testcase_87 AC 93 ms
10,056 KB
testcase_88 AC 93 ms
10,056 KB
testcase_89 AC 94 ms
10,056 KB
testcase_90 AC 93 ms
10,056 KB
testcase_91 AC 92 ms
10,056 KB
testcase_92 AC 92 ms
10,056 KB
testcase_93 AC 93 ms
10,056 KB
testcase_94 AC 95 ms
10,056 KB
testcase_95 AC 92 ms
10,056 KB
testcase_96 AC 94 ms
10,056 KB
testcase_97 WA -
testcase_98 WA -
testcase_99 WA -
testcase_100 WA -
testcase_101 WA -
testcase_102 WA -
testcase_103 WA -
testcase_104 WA -
testcase_105 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_palindrome(x):
    s = str(x)
    l = len(s)
    if s[:l//2] == s[::-1][:l//2]:
        return True
    else:
        return False

N = int(input())
M = 10**9+1

ans = 0
for i in range(1, 10**5):
    if is_palindrome(i) and M*i <= N:
        ans += 1

print(ans)
0