結果
| 問題 |
No.491 10^9+1と回文
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-25 17:46:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-09 17:10:22 |
| 合計ジャッジ時間 | 5,748 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 WA * 61 |
ソースコード
n = int(input().strip())
ls = [
1000000001,
11000000011,
111000000111,
1111000001111,
11111000011111,
111111000111111,
1111111001111111,
11111111011111111,
111111111111111111,
]
total = 0
for a in ls:
x = a
for _ in range(9):
if n > x:
total += 1
x += a
else:
print(total)
raise SystemExit
print(total)