---
title: "Discussion on \"力扣周赛记录\" | Hashnode"
description: "Discussion on \"力扣周赛记录\". 第476场周赛【2/4】\nQ3.统计移除0后不同整数的数目\n\n\n\n思路：不管是怎么来讲 每一位其实都是1-9任意组成的 那么我们是否能够直接比如第一位上是9种可能 第二位数上也是9种可能 我们直接讲所有的可能乘起来 只是需要对最后一位进行另外的处理\n  class Solution {\n  public:\n      long long countDistinct(long long n) {"
url: "https://hashnode.com/posts/5yqb5omj5zgo6lwb6k6w5b2v/6979a3da4b2722359bc4752b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [力扣周赛记录](https://xianyu-sheng.hashnode.dev/5yqb5omj5zgo6lwb6k6w5b2v?utm_source=hashnode&utm_medium=feed)

第476场周赛【2/4】 Q3.统计移除0后不同整数的数目 思路：不管是怎么来讲 每一位其实都是1-9任意组成的 那么我们是否能够直接比如第一位上是9种可能 第二位数上也是9种可能 我们直接讲所有的可能乘起来 只是需要对最后一位进行另外的处理 class Solution { public: long long countDistinct(long long n) {

Jan 28 · 24 min read · xianyu-sheng.hashnode.dev  
Updated Feb 23  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#solutions](https://hashnode.com/tag/solutions)

## Written by

[Xianyu Sheng](https://hashnode.com/@xianyu-sheng)

@xianyu-sheng

  
[View profile](https://hashnode.com/@xianyu-sheng)

## Responses

Comments are turned off for this post.
