9度oj
newbaby2012
芝兰生于深谷,不以无人而不芳;君子修道立德,不为困穷而改节。
展开
-
2011上海交大考研机试
题目链接:http://ac.jobdu.com/index.php (1)很麻烦的一题 #include #include #include #include #include using namespace std; char s[200]; int get_a(int m,int i,char str[]) { int a; if((str[i-1]'9'原创 2014-02-21 11:19:51 · 581 阅读 · 0 评论 -
上海交大2008机试
题目都在这个链接:http://ac.jobdu.com/graoldexamset.php (1) #include #include using namespace std; const int maxn=120000; const int maxk=10000; int vis[maxn]; int prime[maxk]; int c; void getprime(原创 2014-02-21 11:01:33 · 523 阅读 · 0 评论 -
上海交大2009机试
题目链接:http://ac.jobdu.com/graoldexamset.php (1)一碰到日期的题目,我就弱爆了。。。以后再改进方法、、、 #include #include #include #include #include using namespace std; const int maxn=10; char s[maxn],t[maxn]; int y1原创 2014-02-21 11:06:47 · 527 阅读 · 0 评论 -
2010上海交大考研机试
(1) #include #include #include #include using namespace std; const int maxn=1000; char s[maxn]; char f[maxn][maxn]; int cmp(const void *a,const void *b) { return strcmp((char*)a,(char*)b); }原创 2014-02-21 11:14:43 · 639 阅读 · 0 评论 -
浙江大学2012研究生机试
(1) #include #include #include using namespace std; const int maxs=90; const int maxn=40; char s[maxs]; char a[maxn][maxn]; int main() { while(scanf("%s",s)!=EOF) { for(int i=0;i<原创 2014-02-27 18:35:10 · 581 阅读 · 0 评论 -
2011浙大研究生机试题
(1) #include #include #include using namespace std; const int maxn=15; int a[maxn][maxn]; int m,n; int main() { while(scanf("%d",&m)!=EOF) { if(!m) break; scanf("%d",&n); memset(a,0,siz原创 2014-02-27 18:38:39 · 505 阅读 · 0 评论