上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 41 下一页
题目链接:http://codeforces.com/problemset/problem/7/CAX+BY=C已知 A B C 求 X Y;#include #include #include #include using namespace std;typedef long long LL;LL... Read More
posted @ 2015-10-29 13:23 西瓜不懂柠檬的酸 Views(215) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1114题意是有一个存钱罐,当它是空的时候重量为E,满的时候重量为F;已知存钱罐里面有 n 种钱,每种钱的价值为 P 重量为 W ;求存钱罐满的时候里面至少有多少钱;是一个完全背包(求从n个物品中选出总重量... Read More
posted @ 2015-10-29 10:34 西瓜不懂柠檬的酸 Views(226) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1087题意就是给你n个数,找出某个序列的最大和,这个序列满足依次增大的规则;哎,这个题之前做过,但是一点印象都没有但是自己写出来了,估计当时写的时候也不知道为什么这样写吧,事实证明,题做多了自然就懂了;我... Read More
posted @ 2015-10-28 17:19 西瓜不懂柠檬的酸 Views(231) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1100 题意是给你n个数,q个询问,每次求出 a 到 b(从0开始)最小差值; 直接暴力就能过: #include<stdio.h> #include<string.h> #include Read More
posted @ 2015-10-26 19:37 西瓜不懂柠檬的酸 Views(130) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1148 已知有n个人,并且每个人都知道除自己之外还有m个人与自己支持的队一样,让我们求至少有多少个人; 就是很任性的过了; http://lightoj.com/volume_showpr Read More
posted @ 2015-10-26 17:16 西瓜不懂柠檬的酸 Views(126) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1005题意就是在一个n*n的方格中放k个棋子,每一行每一列都不能有两个棋子,问有多少种方法,和8皇后问题很像, 但是8皇后问题可以用暴力搜索,但是本题n的取值范围较大,不能用搜索;在比赛的... Read More
posted @ 2015-10-26 11:25 西瓜不懂柠檬的酸 Views(271) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1029就是给你n(n是奇数)个数找出个数大于(n+1)/ 2 的那个数;n的取值范围是n(1#include#include#include#includeusing namespace std;#def... Read More
posted @ 2015-10-24 13:19 西瓜不懂柠檬的酸 Views(517) Comments(0) Diggs(0)
睡醒了就可以当一切都没有发生。。。然而太难。大学以来,从刚开始的不知所措到现在很清楚的明白自己的目标是什么,想到我当时拿到通知书时连什么是计算 机都不知道,现在竟然成为在以编程为大学的主要目标的人,现在看到15级的新生们,真的看到了自己的身影,想想每个晚自习学长辅导我们的时候是不是也巴不 得机房电脑 Read More
posted @ 2015-10-21 14:44 西瓜不懂柠檬的酸 Views(161) Comments(0) Diggs(1)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5501二维数组:#include#include#include#include#includeusing namespace std;#define N 3100int dp[N][N];struct ... Read More
posted @ 2015-10-12 11:35 西瓜不懂柠檬的酸 Views(198) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5442打比赛的时候还没学kmp更没有学最大最小表示法,之后做完了kmp的专题,学了它们,现在再来做这道题,断断续续做了一段时间最终还是对了;题意:就是有一个甜圈由n个部分组成,每部分的甜度由一个小写字母来... Read More
posted @ 2015-10-11 12:24 西瓜不懂柠檬的酸 Views(309) Comments(0) Diggs(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 41 下一页
levels of contents