結果

問題 No.3240 Count 8 Included Numbers (Easy)
ユーザー tokugh
提出日時 2025-08-22 21:03:43
言語 Julia
(2.11.2)
結果
AC  
実行時間 577 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 7,716 KB
実行使用メモリ 226,964 KB
最終ジャッジ日時 2025-08-22 21:03:56
合計ジャッジ時間 6,481 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

toI(s=readline()) = parse(Int,s)
toVI(s=readline()) = parse.(Int,split(s))
rep(f,n) = [f() for _ in 1:n]
@enum YN Yes=1 No=0

function main()
    n = toI()
    solve(n) |> println
end

function solve(n)
    cnt = 0
    for x in 1:n
        if 8 in digits(x)
            cnt += 1
        end
    end
    cnt
end

@static if endswith(@__FILE__, PROGRAM_FILE)
    main()
end
0