05 2014 档案

杭电2025
摘要:1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 string str=""; 8 string str2=""; 9 char max;10 while (getline(ci... 阅读全文

posted @ 2014-05-13 21:02 Lingc· 阅读(329) 评论(0) 推荐(0)

杭电 2024
摘要:1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int n; 8 string str; 9 int flag;10 while (cin>>n)11 {12 ... 阅读全文

posted @ 2014-05-13 19:34 Lingc· 阅读(384) 评论(0) 推荐(0)

杭电2019
摘要:1 #include 2 using namespace std; 3 4 int main() 5 { 6 int a[110] = {0};//已经排好的 7 int n,m; 8 while (cin>>n>>m && n||m) 9 {10 ... 阅读全文

posted @ 2014-05-13 14:31 Lingc· 阅读(284) 评论(0) 推荐(0)

杭电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· 阅读(295) 评论(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· 阅读(290) 评论(0) 推荐(0)

杭电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· 阅读(251) 评论(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· 阅读(191) 评论(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· 阅读(416) 评论(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· 阅读(215) 评论(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· 阅读(293) 评论(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· 阅读(237) 评论(0) 推荐(0)

杭电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· 阅读(1138) 评论(0) 推荐(0)

杭电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· 阅读(394) 评论(1) 推荐(0)

杭电oj 1000
摘要:今天开始和一个认识的学弟刷题。 学弟是个大牛,我还是个菜鸟。嘿嘿。杭电第一题我就wrong了好几次。 1 #include 2 using namespace std; 3 4 int main() 5 { 6 int A = 0,B = 0; 7 while(cin >> A ... 阅读全文

posted @ 2014-05-08 23:03 Lingc· 阅读(367) 评论(0) 推荐(0)

导航

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