結果
| 問題 |
No.491 10^9+1と回文
|
| コンテスト | |
| ユーザー |
ノットカワズ
|
| 提出日時 | 2017-03-28 07:07:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,568 KB |
| 最終ジャッジ日時 | 2024-07-06 12:50:15 |
| 合計ジャッジ時間 | 2,926 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 102 |
ソースコード
# -*- coding: utf-8 -*-
s = input()
index = len(s)-9
total = 0
if s[:index] <= s[-index:]:
total += 1
i = 1
left_numbers = s[:index]
while i < int(left_numbers):
check_num = str(i)
if check_num == check_num[::-1]:
total += 1
i += 1
print(total)
ノットカワズ