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) 编辑

导航