結果
| 問題 |
No.491 10^9+1と回文
|
| コンテスト | |
| ユーザー |
ノットカワズ
|
| 提出日時 | 2017-03-28 06:30:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 177 bytes |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-06 12:44:15 |
| 合計ジャッジ時間 | 4,670 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 88 |
ソースコード
# -*- coding: utf-8 -*-
s = input()
index = len(s)-9
total = 0
if s[:index] <= s[-index:]:
total += 1
total += (len(s[:index]) - 1) * 9
total += int(s[0]) - 1
print(total)
ノットカワズ