
水题
gneveek
T_T此号终于找回,以后要注意安全。
展开
-
hdu1898 Sempr == The Best Problem Solver?
水题#include using namespace std;int main(){ freopen("in.txt","r",stdin); int a,b,t; int n; cin>>n; while(n--){ cin >> a >> b >> t; if(t%a > t%b) cout << "Xiangsanzi!"; else if原创 2012-05-25 21:06:25 · 933 阅读 · 0 评论 -
hdu1976
#include using namespace std;int main(){ freopen("in.txt","r",stdin); int t; cin >> t; int a1,a2,a3,b1,b2,b3; while(t--) { cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3; if(a1 > b1) cout原创 2012-05-25 21:22:03 · 928 阅读 · 0 评论 -
HDU-2037今年暑假不AC(贪心算法)
http://acm.hdu.edu.cn/showproblem.php?pid=2037以节目结束时间作为贪心搜索的依据。证明贪心算法在此问题中适用:(反证法)如图所示……AC代码:#include using namespace std;int int_comp(const void *a, const void原创 2012-07-11 10:26:54 · 1319 阅读 · 0 评论 -
FAFU1073 队长的情书
这题简直就是坑爹!因为图没显示全!(把图另存到本地看!后面还有两个字母,R和S)而且是下面的是密文,上面是对应的翻译! 我靠,玩人呢?// Date: 2012-07-// URL: #include #include using namespace std;char a[]={ 'B','C','D','A','I','J','G','K',原创 2012-07-12 09:26:29 · 916 阅读 · 0 评论 -
HDU 水题 1859 1860 1862
hdu 1859#include struct Point{ int x,y;}min,max,tmp;int main(void){ while( scanf("%d %d",&tmp.x, &tmp.y), tmp.x!=0 || tmp.y!=0 ) { min.x = tmp.x; min.y = tmp.y; max.x = tmp.x;原创 2012-09-17 15:22:15 · 1888 阅读 · 0 评论