03 2015 档案

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 阅读(156) 评论(0) 推荐(0)

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

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

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

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

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 阅读(138) 评论(1) 推荐(0)

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

posted @ 2015-03-05 01:57 windrises 阅读(116) 评论(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 阅读(199) 评论(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 阅读(177) 评论(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 阅读(183) 评论(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 阅读(202) 评论(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 阅读(120) 评论(0) 推荐(0)

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 阅读(97) 评论(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 阅读(94) 评论(0) 推荐(0)

导航