2017年6月15日

摘要: 解释清楚,简单 http://blog.csdn.net/maotianwang/article/details/34466483 阅读全文
posted @ 2017-06-15 17:35 whitehouse 阅读(74) 评论(0) 推荐(0) 编辑

2017年3月17日

摘要: //只有90分,实在找不出哪里错了或者什么情况忽略了 #include<iostream>#include<string>using namespace std;int main(){ int a[20][5],n,i,j,k,count = 1,ok = 1; for(i=0;i<20;i++) 阅读全文
posted @ 2017-03-17 20:02 whitehouse 阅读(94) 评论(0) 推荐(0) 编辑
摘要: //100分 #include<iostream>using namespace std; typedef struct Point{ int x1,x2,y1,y2; int order; int no;};typedef struct XY{ int x,y;};int main(){ int 阅读全文
posted @ 2017-03-17 20:00 whitehouse 阅读(103) 评论(0) 推荐(0) 编辑
摘要: /*100分,注意不要滥用++,--,尤其是前置++,--很容易混乱,最好一个语句中用一次*/#include<iostream>using namespace std;int main(){ int n,i,j; cin>>n; int a[n][n]; for(i=0;i<n;i++){ for 阅读全文
posted @ 2017-03-17 19:59 whitehouse 阅读(83) 评论(0) 推荐(0) 编辑
摘要: //100分,进步的是使用了isdigit()函数判断字符是不是英文字母 #include<iostream>#include<string>#include<cctype>using namespace std;int main(){ string str; cin>>str; int a[10] 阅读全文
posted @ 2017-03-17 19:58 whitehouse 阅读(88) 评论(0) 推荐(0) 编辑

2017年3月10日

摘要: #include<iostream>#include<algorithm>using namespace std;int main(){ int n; cin>>n; int a[n]; int i,j,count1 = 0,count2 = 0; for(i=0;i<n;i++) cin>>a[i 阅读全文
posted @ 2017-03-10 19:18 whitehouse 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ int t,s,x,i; cin>>t; if(t<=3500) cout<<t; else{ for(i=3600;i<=200000;i+=100){ if(i>=3600&&i<=5000){ 阅读全文
posted @ 2017-03-10 19:17 whitehouse 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<algorithm>using namespace std;int cmp(string a,string b){ return a+b>b+a; }int main(){ int n; while(scanf(" 阅读全文
posted @ 2017-03-10 19:16 whitehouse 阅读(71) 评论(0) 推荐(0) 编辑

导航