上一页 1 ··· 3 4 5 6 7

2013年12月9日

uva 409 - Excuses, Excuses!

摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=350这题没什么难度,一定要注意的地方是单词的判断,比如搜索单词word ,如果出现dword是不算的。这题一次性ac#include#include#includeusing namespace std;void convert(int len,string src[],string dis[]){ //拷贝到复制数组进行大小写转换 for(int i=0;i>k>&g 阅读全文

posted @ 2013-12-09 15:53 云在心 阅读(142) 评论(0) 推荐(0)

uva 537 - Artificial Intelligence?

摘要: 这题看题目时要细心,讲一下做题步骤1.得到 P,I,U的double值,可以用string类型中搜索法2.确定精度3.得到目标值因为在输出时忘记打印P=,U=,I=,还wa了一次#include#include#include#include#includeusing namespace std;int main(){ int n,num=1; string annotation[]={"P=","I=","U="}; string character[]={"W","A","V&qu 阅读全文

posted @ 2013-12-09 11:00 云在心 阅读(203) 评论(0) 推荐(0)

2013年11月28日

uva 10361 - Automatic Poetry

摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1302这次又是没有通过,wawawawawawa,我要疯了,完全不知道错在哪里,感觉应该要把错误的测试数据告诉我们啊#include#include#includeusing namespace std;int main(){ int n; cin>>n; getchar(); string l1,l2; while(n--){ int start,end; ... 阅读全文

posted @ 2013-11-28 21:32 云在心 阅读(150) 评论(0) 推荐(0)

2013年11月27日

uva 10010 - Where's Waldorf?

摘要: 题目地址http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=951这题并不是很难,要在8个方向上做判断,纯属量的问题,做了很多次测试,一直wa,不知道为什么,哎!#include#includeusing namespace std;int m,n;void searchWordlof(string a[],string s){ int x=51,y=51; for(int i=0;i=s.size()&&revtem 阅读全文

posted @ 2013-11-27 19:22 云在心 阅读(196) 评论(0) 推荐(0)

2013年11月26日

Uva 401 - Palindromes

摘要: 题目地址http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=&problem=342&mosmsg=Submission+received+with+ID+虽然把代码写完了,也做了很多测试,还是wa,很心痛,有人能帮我看看代码错哪里吗#include#includeusing namespace std;char ref[100];void Init(){ ref['A']='A'; 阅读全文

posted @ 2013-11-26 21:23 云在心 阅读(192) 评论(1) 推荐(0)

uva start

摘要: 最近在看刘汝佳写的《算法竞赛入门经典》做题网址http://uva.onlinejudge.org/index.php 阅读全文

posted @ 2013-11-26 21:00 云在心 阅读(144) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7

导航