原创 ZOJ 1001 A + B Problem

#include <stdio.h> int main() { int a,b; while(scanf("%d %d",&a, &b) != EOF) printf("%d\n",a+b); re

原创 POJ 1659 Frogs' Neighborhood (生成樹問題)

題目鏈接:http://poj.org/problem?id=1659 題意:根據序列構造圖(圖論基礎題) #include<stdio.h> #include<algorithm> #include<string.h> usi

原创 百練 1844 Sum

題目鏈接:http://bailian.openjudge.cn/practice/1844 # include <stdio.h> int main() { int n,i,s; scanf("%d",&n); for(i=1;;

原创 ZOJ 1045 HangOver

# include <stdio.h> int main() { int i; float a,sum; while(scanf("%f",&a)!=EOF&&a!=0.00) {

原创 HDOJ 2088 Box of Bricks

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=2088 #include<stdio.h> #include<string.h> #include<math.h> int abs(int x

原创 HDOJ 1000 A + B Problem

# include <stdio.h> int main() { int a,b; while(scanf("%d %d",&a,&b)!=EOF) { printf("%d\n",a+b);

原创 POJ 1004 Financial Management

#include <stdio.h> int main() { double n,m=0; int i; for(i=0;i<12;i++) { scanf("%lf",&n); m+=n; } printf("$%.

原创 ZOJ 1037 Gridland

# include <stdio.h> int main() { int m,n; int x; int l; scanf("%d",&x); int i; for(i=1;i<=x;i++) { print

原创 ZOJ 1049 I Think I Need a Houseboat

# include <stdio.h> # include <math.h> const double PI = 3.1415927; int main() { int n, i = 1; int year; doubl

原创 POJ 1000 A+B Problem

# include <stdio.h> int main() { int a,b; scanf("%d %d",&a, &b); printf("%d\n",a+b); return 0; }

原创 POJ 1611 The Suspects (並查集)

題目鏈接:http://poj.org/problem?id=1611 函數:void Empty()、int Find(int x)、void Union(int r1,int r2)  這三個函數,要背熟。 # include <io

原创 杭州賽區網絡賽

今天全軍覆沒,幾個人一道題也沒AC,不是RE,就是WA的。 大三的我們,大二的學弟學妹,還有特意給我們每個人打印題的教練(院長), 是爲了爭取亞洲賽區的僅此的一個名額,其實實驗室也挺好的, 只是會想學長學姐,大一大二的時候還氣他們不帶我們

原创 百練 1007 DNA Sorting

題目鏈接:http://bailian.openjudge.cn/practice/1007 # include <stdio.h> # include <iostream> # include <algorithm> # include

原创 HDOJ題目分類

基礎題: 1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、1076、1089

原创 HDOJ 4509 湫湫系列故事——減肥記II(2013騰訊編程馬拉松)

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=4509 # include <stdio.h> int main() { int n,i,j,h1,m1,h2,m2,time=0;