10 2016 档案
摘要:打得还不错的一场CF,题目质量也很高,今后还要继续努力 A题: 题意:给定一个数k,让其乘一个最小的数,使乘得以后的数要不被10整除,要不减去r以后被10整除,求这个最小的数 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring>
阅读全文
摘要:分析:对于小于等于k的数,每次可以由底部直接到达,一直到i-1直接到达;而对于大于k的数,每次由i-k个一直到i-1个直接到达 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 #
阅读全文
摘要:分析:码农题,照这模拟就行,高精度的B进制,注意字符串反转的技巧。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 #include <vector> 6 #include <a
阅读全文
摘要:题意:2000Noip提高组 分析:这题没有理解好题意,最后看了题解之后才做出来的,下面贴一下刘汝佳大神的题解 我先来说说题目的意思。就从样例开始分析。 输入是: 31 28 130 30 120 31 110 -1 -1 15 意思就是政府预期价是31元。成本28元,按成本销售的时候可以买130件
阅读全文
摘要:分析:第n次的台阶数为dp[n],则dp[n]=dp[n-1]+dp[n-2]; 1 // 2 // main.cpp 3 // 1601 4 // 5 // Created by wanghan on 16/10/12. 6 // Copyright © 2016年 wanghan. All ri
阅读全文
摘要:1 // 2 // main.cpp 3 // 1601 4 // 5 // Created by wanghan on 16/10/12. 6 // Copyright © 2016年 wanghan. All rights reserved. 7 // 8 9 #include<cstdio>
阅读全文