
UVa
SilverNebula
这个作者很懒,什么都没留下…
展开
-
UVa 11292 Dragon of Loowater
/*UVa 11292 Dragon of Loowater*/#include#include#include#includeusing namespace std;int n,m;int main(){ while(scanf("%d%d",&n,&m) && n!=0 && m!=0){ int i; int a[20050]={0};/原创 2016-04-16 18:14:35 · 408 阅读 · 0 评论 -
UVa 673 Parentheses Balance
一个匹配左右括号的问题/*UVa 673 Parentheses Balance*/#include#include#include#include#includeusing namespace std;char c[500];int n;int pd(char q,char e){ if(q=='(' && e==')')return 1; if(q=='[' && e原创 2016-04-28 22:32:52 · 370 阅读 · 0 评论 -
UVa 101 The Blocks Problem Vector基本操作
UVa 101 The Blocks Problem一道纯模拟题The Problem The problem is to parse a series of commands that instruct a robot arm in how to manipulate blocks that lie on a flat table. Initially there are nbl原创 2016-04-28 23:07:05 · 452 阅读 · 0 评论 -
UVa 839 Not so Mobile
#include#include#include#include#includeusing namespace std;int n;bool bal(int &w){ int w1,w2,d1,d2; bool b1=1,b2=1; scanf("%d%d%d%d",&w1,&d1,&w2,&d2); if(!w1)b1=bal(w1); if原创 2016-04-16 18:11:04 · 517 阅读 · 0 评论 -
UVa 1636 Headshot
算概率的小题原创 2016-05-06 23:22:28 · 367 阅读 · 0 评论 -
UVa 1328 Period
KMP原创 2016-05-09 23:47:43 · 566 阅读 · 0 评论