NOIP 最水题

比陶陶摘苹果还要水

13 条评论

  • @ 2016-11-23 12:22:42

    就是

  • @ 2016-11-03 18:27:44

    陶陶摘苹果水一点吧。

  • @ 2016-08-15 09:30:31

    苹果摘陶陶~~~

  • @ 2016-07-27 13:27:31

    菜鸟弱弱地问一下……大神们知道用什么方法时间不爆吗?

    • @ 2016-08-30 13:27:38

      ###__DP大法__
      ```c++
      评测结果
      编译成功

      测试数据 #0: Accepted, time = 0 ms, mem = 39652 KiB, score = 10
      测试数据 #1: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #2: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #3: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #4: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #5: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #6: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #7: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #8: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      测试数据 #9: Accepted, time = 0 ms, mem = 39648 KiB, score = 10
      Accepted, time = 0 ms, mem = 39652 KiB, score = 100
      代码
      #include <cstdio>
      int dp[10000001],n,x,sum = 0;
      int main() {
      scanf("%d%d",&n,&x);
      dp[x] = 1;
      for (int i = 1;i <= n;i++) {
      dp[i] = dp[i%10];
      if (i/10) dp[i] += dp[i/10];
      sum += dp[i];
      }
      printf("%d",sum);
      return 0;
      }
      ```

  • @ 2016-05-29 22:02:35

    {你们瞎说什么大实话呢}

  • @ 2015-11-02 22:25:44

    明明是陶陶摘苹果水

  • @ 2014-08-29 17:30:07

    陶陶更废

  • @ 2014-08-24 18:16:31

    淘淘摘苹果最水,,,,,,,,

  • @ 2014-08-04 16:57:21

    似乎还是陶陶摘苹果水

  • @ 2014-08-03 16:56:26

    感觉还是陶陶摘苹果比较水一些。

  • @ 2014-08-03 15:08:59

    感觉还是陶陶摘苹果最水(不费脑子)

  • @ 2014-08-03 11:26:25

    同感=。=

  • @ 2014-08-02 17:27:26

    真相了

  • 1

信息

ID
1848
难度
5
分类
(无)
标签
递交数
16558
已通过
5790
通过率
35%
被复制
36
上传者