結果

問題 No.3240 Count 8 Included Numbers (Easy)
ユーザー Hyoka7
提出日時 2025-08-22 21:21:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 82,816 KB
実行使用メモリ 61,440 KB
最終ジャッジ日時 2025-08-22 21:21:22
合計ジャッジ時間 2,087 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

def readint():
    return map(int, input().split())


def readlist():
    return list(readint())


n = int(input())
ans = 0
for i in range(1, n + 1):
    s = list(str(i))
    for x in s:
        if x == "8":
            ans += 1
            break
print(ans)
0