2014年5月13日

杭电2014

摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int n; 8 double max,min,sum,aver; 9 double a[110] = {0};10 while... 阅读全文

posted @ 2014-05-13 11:15 Lingc· 阅读(290) 评论(0) 推荐(0) 编辑

杭电 2012

摘要: 1 #include 2 3 using namespace std; 4 5 int is_prime(int ); 6 int main() 7 { 8 int x,y,val; 9 while (cin>>x>>y && x||y)10 {11 ... 阅读全文

posted @ 2014-05-13 11:03 Lingc· 阅读(281) 评论(0) 推荐(0) 编辑

2014年5月12日

杭电2007

摘要: 1 #include 2 using namespace std; 3 4 int ji(int); 5 int ou(int); 6 int main() 7 { 8 int m,n,x,y; 9 while (cin >> m >> n)10 {11 ... 阅读全文

posted @ 2014-05-12 21:37 Lingc· 阅读(245) 评论(0) 推荐(0) 编辑

杭电 2004

摘要: 1 #include 2 using namespace std; 3 char grand(int); 4 int main() 5 { 6 int n; 7 while (cin>> n) 8 { 9 if (n>100 || n<0)10 ... 阅读全文

posted @ 2014-05-12 21:06 Lingc· 阅读(184) 评论(0) 推荐(0) 编辑

杭电2005

摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int year,month,day; 8 9 char a;10 int days_of_month1[13] = {0,31,29... 阅读全文

posted @ 2014-05-12 20:40 Lingc· 阅读(408) 评论(1) 推荐(0) 编辑

杭电2001

摘要: #include #include #include using namespace std;int main(){ double x1,y1,x2,y2; double result; while (cin>>x1>>y1>>x2>>y2) { result ... 阅读全文

posted @ 2014-05-12 18:00 Lingc· 阅读(207) 评论(0) 推荐(0) 编辑

杭电 2000

摘要: #include using namespace std;#define MAXN 4int main(){ //char arr[MAXN] = {0}; char arr[MAXN]; memset(arr,0,MAXN); while (cin >> arr) {... 阅读全文

posted @ 2014-05-12 17:45 Lingc· 阅读(282) 评论(0) 推荐(0) 编辑

Section One

摘要: 1.1.1 1 #include 2 using namespace std; 3 4 int main() 5 { 6 int a,b,N; 7 cin >> N; 8 while ( cin >>a >>b) 9 {10 cout 2 usi... 阅读全文

posted @ 2014-05-12 13:49 Lingc· 阅读(221) 评论(0) 推荐(0) 编辑

2014年5月9日

杭电oj 1002

摘要: 1 #include 2 #include 3 using namespace std; 4 int nCases; 5 int m[1001], n[1001]; 6 char a[1001], b[1001]; 7 int main() 8 { 9 scanf("%d", &nCa... 阅读全文

posted @ 2014-05-09 20:19 Lingc· 阅读(1119) 评论(0) 推荐(0) 编辑

2014年5月8日

杭电oj 1001

摘要: #includeusing namespace std;int main(){ int n = 0, sum; while (cin>>n) { sum = 0; // 这里要清零 for (int i =0; i <= n; i++) {... 阅读全文

posted @ 2014-05-08 23:26 Lingc· 阅读(385) 评论(1) 推荐(0) 编辑

导航

不知道不知道 知道不知道 知道知道 不知道知道。
天道酬勤,同志们共同努力!