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