2015年4月1日

UVa-156 - Ananagrams

摘要: 还是抄袭。 前面的那个妹纸一直在画工图,都连续画好几小时了,非常认真。 衣服和我的很像,看背景挺喜欢的。#include#include#include#include#includeusing namespace std;vector words;map cnt;string repr(strin... 阅读全文

posted @ 2015-04-01 21:30 windrises 阅读(105) 评论(0) 推荐(0) 编辑

UVa-10815 - Andy's First Dictionary

摘要: 算是抄袭代码#include#include#include#includeusing namespace std;set dict;int main(){ string s,buf; while(cin>>s) { int l=s.size(); fo... 阅读全文

posted @ 2015-04-01 21:27 windrises 阅读(126) 评论(0) 推荐(0) 编辑

UVa-129 - Krypton Factor

摘要: 第一次亲自发现原来包含头文件也需要时间=。=#include#includeint a[85],n,l,cnt;bool judge(int cur){ for(int i=1,j;i=cur-i+1;j--) if(a[j]!=a[j-i]) break; ... 阅读全文

posted @ 2015-04-01 01:56 windrises 阅读(126) 评论(0) 推荐(0) 编辑

2015年3月30日

UVa-524 - Prime Ring Problem

摘要: 好久没有刷UVa了,没想到居然一次AC,代码几乎与rujia没有什么太大的区别 1 #include 2 #include 3 #include 4 using namespace std; 5 int a[20],n,cnt; 6 bool isprime(int m) 7 { 8 for... 阅读全文

posted @ 2015-03-30 23:30 windrises 阅读(147) 评论(0) 推荐(0) 编辑

2015年3月23日

有点迷茫

摘要: 迷茫,不知道哪条路是正确的,不知道该怎么走。 阅读全文

posted @ 2015-03-23 01:54 windrises 阅读(82) 评论(0) 推荐(0) 编辑

2015年3月15日

北邮之行~

摘要: 今天到北邮去参加他们的新生赛,大概上百人吧,我排名还不错。比那次去地大比赛有长进 :) 加油!!! 有点忙,也很少刷UVa了,博客好久没有更新了。。 阅读全文

posted @ 2015-03-15 20:36 windrises 阅读(101) 评论(0) 推荐(0) 编辑

2015年3月5日

UVa-253 - Cube painting

摘要: 水题一道。#includeusing namespace std;int main(){ char a[15]={}; while(cin>>a+1) { int i,j; for(i=7;i<=9;i++) { fo... 阅读全文

posted @ 2015-03-05 04:34 windrises 阅读(128) 评论(1) 推荐(0) 编辑

心累--期末考试成绩

摘要: 今天,哦不对,是昨天。找zhang导要了成绩。 哎,具体每科的成绩我早就在教务上看到了,我估计最终排名肯定会有点低,结果不出所料啊。 排名中等。好心累啊,别的科目我倒也没怎么下功夫差点就算了,但是我为高级程序设计这门专业课付出那么多,结果还是不理想。哎,千言万语。心累心累啊。 下学期水课就少很多,不... 阅读全文

posted @ 2015-03-05 01:57 windrises 阅读(108) 评论(0) 推荐(0) 编辑

UVa-220 Othello

摘要: 以前做的题,写的极丑,肯定可以优化,但是做过的题不想再看了,直接粘代码。#include#include#include#includeusing namespace std;bool judge(int x,int y,char b,char d);void m(int x,int y,char ... 阅读全文

posted @ 2015-03-05 01:47 windrises 阅读(190) 评论(0) 推荐(0) 编辑

UVa-201 Squares

摘要: 以前做的题,写的丑,肯定可以优化,但是做过的题不想再看了,直接粘代码。#include#include#include#includeusing namespace std;bool fuc(int x,int y,int i);int h[20][20]={},v[20][20]={};int m... 阅读全文

posted @ 2015-03-05 01:46 windrises 阅读(167) 评论(0) 推荐(0) 编辑

UVA-1589 Xiangqi

摘要: 以前做的题,写的丑,肯定可以优化,但是做过的题不想再看了,直接粘代码。#include#include#include#includeusing namespace std;int f[11][10]={},ri[41]={},rj[41]={};int num,bi,bj;char c[41]={... 阅读全文

posted @ 2015-03-05 01:44 windrises 阅读(172) 评论(0) 推荐(0) 编辑

UVa-213 Message Decoding

摘要: 难题!又是借鉴了rujia的代码。看了好几遍,凭记忆和理解手打的居然一次AC。#include#include#includeusing namespace std;char code[8][1<<8];bool readcode(){ memset(code,0,sizeof(code));... 阅读全文

posted @ 2015-03-05 00:08 windrises 阅读(196) 评论(0) 推荐(0) 编辑

UVa-133 The Dole Queue

摘要: 基本上完全借鉴了rujia的代码。#include#include#includeusing namespace std;int n,k,m,a[25];int go(int p,int cnt,int q){ while(cnt--) { do { ... 阅读全文

posted @ 2015-03-05 00:05 windrises 阅读(114) 评论(0) 推荐(0) 编辑

2015年3月3日

UVa-489 - Hangman Judge

摘要: #include#includeusing namespace std;int main(){ int n; while(cin>>n&&n!=-1) { string a,b; cin>>a>>b; int la=a.size(),lb=... 阅读全文

posted @ 2015-03-03 15:21 windrises 阅读(92) 评论(0) 推荐(0) 编辑

UVa-1339 - Ancient Cipher

摘要: #include#include#includeusing namespace std;int main(){ string a,b; while(cin>>a>>b) { int l=a.size(),cnt1[26]={},cnt2[26]={},i; ... 阅读全文

posted @ 2015-03-03 15:20 windrises 阅读(90) 评论(0) 推荐(0) 编辑

导航