05 2012 档案

摘要:题目http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=350找下面的句子中上面关键词出现的最多的句子 一样多的话按给的顺序输出将下面的句子分解成小的只含字母字符串 然后依次与上面查找比较 找出数量最多的就行View Code 1 #include <stdio.h> 2 #include<string.h> 3 struct node 4 { 5 char c[25]; 6 int flag; 7 }; 8 阅读全文
posted @ 2012-05-30 00:39 _雨 阅读(267) 评论(0) 推荐(0) 编辑
摘要:题目http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96&page=show_problem&problem=478依次搜查就行了 要注意m,k,M这几个不是标准单位 要进行换算一下,写着有点麻烦,多注意一些。View Code 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include<string.h> 4 char c[1001]; 5 float swit(char 阅读全文
posted @ 2012-05-27 21:33 _雨 阅读(219) 评论(0) 推荐(0) 编辑
摘要:题目http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1302题目大意就是在<之后的字符串用二维数组存起来 一直到最后 输出的第一行就是把输入的<和>去掉然后输出 第二行 把省略号 用刚才存的数组代替 除了最后一个字符串 其它的都倒着输出 输完再把最后一个字符串输出。View Code 1 #include<stdio.h> 2 #include<string.h> 3 int main() 阅读全文
posted @ 2012-05-26 11:42 _雨 阅读(249) 评论(0) 推荐(0) 编辑
摘要:题目http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=951就是从每个字符的8个方向循环找是否有跟给出的字符串相等的 找的时候稍微限制一些条件即可 代码有点长View Code 1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 int t, n, m, k, y, i, j,f,x,w,v,flag,g,o; 6 char c[55][55 阅读全文
posted @ 2012-05-26 11:38 _雨 阅读(203) 评论(0) 推荐(0) 编辑
摘要:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1570递归求解View Code 1 #include<stdio.h> 2 #include<string.h> 3 int count = 0; 4 int a[21][21]; 5 int h, w; 6 void road(int m, int n) 7 { 8 int i, j; 9 if(m == 1&&n == w)10 {11 count++;12 return ;13 ... 阅读全文
posted @ 2012-05-09 16:31 _雨 阅读(156) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示