結果

問題 No.491 10^9+1と回文
ユーザー Yukino DX.Yukino DX.
提出日時 2023-11-29 15:48:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2023-11-29 15:49:05
合計ジャッジ時間 20,586 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from itertools import count

n = int(input())
ans = 0
for i in map(str, count(1)):
    a = int(i + i[::-1])
    b = int(i + i[: len(i) // 2][::-1])
    if a * 1000000001 <= n:
        ans += 1
    if b * 1000000001 <= n:
        ans += 1
    else:
        break

print(ans)
0