結果
| 問題 | No.491 10^9+1と回文 |
| コンテスト | |
| ユーザー |
ノットカワズ
|
| 提出日時 | 2017-03-28 06:23:46 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-28 01:59:14 |
| 合計ジャッジ時間 | 12,634 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
ノットカワズ