結果

問題 No.3240 Count 8 Included Numbers (Easy)
ユーザー akebono03
提出日時 2025-09-03 14:15:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2025-09-03 14:16:00
合計ジャッジ時間 2,615 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

def ip():return int(input())
def mp():return map(int, input().split())
def lmp():return list(map(int, input().split()))
# No.3240 Count 8 Included Numbers (Easy)
N = ip()
ans = 0
for i in range(1, N+1):
  s = str(i)
  if '8' in s:
    ans += 1
print(ans)
0