摘要: P1120 小木棍 [数据加强版]题解:#include #include #include int n, cnt, tot, maxn, minn, tm[70];void dfs(int res,int su... 阅读全文
posted @ 2020-02-18 17:41 BorisDimitri 阅读(32) 评论(0) 推荐(0) 编辑
摘要: CF11A Increasing Sequence入门题,就不解释了题解:算法复杂度为O(n)#include #include using namespace std;int a[2001];int main(... 阅读全文
posted @ 2020-02-16 18:01 BorisDimitri 阅读(45) 评论(0) 推荐(0) 编辑
摘要: CF1B Spreadsheets题解:#include using namespace std;char x[1000010];int main() { int n,i,j,k; cin>>n; for(i=1... 阅读全文
posted @ 2020-02-16 13:54 BorisDimitri 阅读(29) 评论(0) 推荐(0) 编辑
摘要: CF25A IQ test题解:#include using namespace std;int a[101];int main(int argc, char **argv){ int n; cin>... 阅读全文
posted @ 2020-02-16 13:51 BorisDimitri 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 题目链接由于此题过于水,所以就不解释了直接上题解 题解: #include using namespace std;int a[101];int main(int argc, char **argv){ i... 阅读全文
posted @ 2020-02-16 13:48 BorisDimitri 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 大水题让我们介绍一下STL库中的绝对值函数-... 阅读全文
posted @ 2020-02-15 18:10 BorisDimitri 阅读(74) 评论(0) 推荐(0) 编辑
摘要: CF9C Hexadecimal's Numbersせむすけヌ题解:#include#includeusing namespace std;int a[100],ans,n;int pow_(int a,int ... 阅读全文
posted @ 2020-02-15 17:21 BorisDimitri 阅读(15) 评论(0) 推荐(0) 编辑
摘要: P2404 自然数的拆分问题题解:#include using namespace std;int n,sum;int a[15]={1};void print(int t){ for(int i=1;i>n; ... 阅读全文
posted @ 2020-02-14 16:20 BorisDimitri 阅读(64) 评论(0) 推荐(0) 编辑
摘要: P1118 [USACO06FEB]数字三角形`Backward Digit Su`…第一次看到这个题的感受 :题解:#include using namespace std;int n,sum;int ha[1... 阅读全文
posted @ 2020-02-14 15:07 BorisDimitri 阅读(41) 评论(0) 推荐(0) 编辑
摘要: P1023 税收与补贴问题题解:#include#include#includeusing namespace std;int s, a, b, d, n = 0;int a1, a2, a3, b1, b2, ... 阅读全文
posted @ 2020-02-14 14:55 BorisDimitri 阅读(42) 评论(0) 推荐(0) 编辑