- 博客(9)
- 收藏
- 关注
原创 九度OJ 题目1432:叠筐
#include <iostream> #include<cstdio> using namespace std; int main() { char outPutBuf[82][82]; char a,b; int n; bool firstcase=true; while(scanf("%d %c %c",&n,&...
2018-03-21 21:41:56
229
原创 九度OJ 题目1088:剩下的树
来源:2011年清华大学计算机研究生机试真题#include <iostream> using namespace std; int main() { int l,m; while(cin>>l>>m){ int len[10001]={0}; for(int i=0;i<m;++i){ ...
2018-03-21 17:10:49
183
原创 九度oj 1156 谁是你的潜在朋友
2011年北京大学计算机研究生机试真题.#include <iostream> using namespace std; //int a[205],b[] int main() { int n,m; while(cin>>n>>m){ int a[205],b[205]={0}; for(int i=0;i<...
2018-03-21 16:53:42
335
原创 九度oj 1186 打印日期
来源:2003-2005年华中科技大学计算机研究生机试真题#include <iostream> #include<cstdio> using namespace std; #define isyear(x) (x%4==0&&x%100!=0||x%400==0?1:0) int dayofmonth[13][2]={ 0,0, 31,31...
2018-03-19 21:31:09
201
原创 九度oj 1070 今年的第几天?
2003年清华大学计算机研究生机试真题/* //这是直接计算 #include <iostream> #define isyear(x) (x%100!=0&&x%4==0||x%400==0?1:0) using namespace std; int md1[]={0,31,29,31,30,31,30,31,31,30,31,30,31}; int md2[]={...
2018-03-19 20:57:06
188
原创 九度oj1070 今年的第几天?
#include <iostream> #define isyear(x) (x%100!=0&&x%4==0||x%400==0?1:0) using namespace std; int md1[]={0,31,29,31,30,31,30,31,31,30,31,30,31}; int md2[]={0,31,28,31,30,31,30,31,31,30,31,...
2018-03-19 01:24:09
197
原创 九度oj1054 字符串内排序
#include <iostream> #include<cstring> #include<algorithm> using namespace std; char a[250]; int main() { while(cin>>a){ sort(a,a+strlen(a)); cout<<a&l...
2018-03-16 17:28:03
162
原创 (九度oj亦有)HDU 1862 EXCEL排序
#include <iostream> #include<algorithm> #include<cstring> using namespace std; struct sexcel{ char num[10]; char name[10]; int score; }excel[100050]; bool cmp1(sexcel c1,...
2018-03-16 17:13:47
176
原创 九度oj 特殊排序
#include <iostream> #include<algorithm> using namespace std; int main() { int n; int a[1050]; while(cin>>n){ for(int i=0;i<n;++i){ cin>>a[i]...
2018-03-16 16:02:38
165
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人