ACM~练习
dooder_daodao
这个作者很懒,什么都没留下…
展开
-
Poj2269 Friends (表达式求值)
<br />题目链接:http://poj.org/problem?id=2269<br /> <br />题意:给出集合的表达式,在已经知道几种运算规则的情况下求表达式值。<br /> <br />栈的运用:<br />#include<stdio.h>#include<string.h>#include<stdlib.h>#include<ctype.h>#define M 256class CSet{ bool set[26];public: CSet(){memset原创 2011-05-30 00:39:00 · 1500 阅读 · 0 评论 -
Any fool can do it!(Poj2475/Zoj2800)(递归/备忘录)
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2800 http://poj.org/problem?id=2475题意:题目给出了此题Set的递归定义,要求根据这个定义确定一个串是不是Set;解题:就是根据定义一条条的写出递归函数,然后需要注意的是有很多递归的调用存在大量的重复运算,要加备忘录记录结果.8500699dooder_daodao2475Accepted208K32MSC++1165B原创 2011-04-17 00:56:00 · 1245 阅读 · 0 评论 -
大整数运算(加法,减法,除法,求余,求最大公约数)
<br />Another lottery<br />Description<br />Even in times of an economic crisis, people in Byteland still like to participate in lotteries. With a bit of luck, they might get rid of all their sorrows and become rich. <br />The most popular lottery in Bytel原创 2011-05-01 13:15:00 · 1272 阅读 · 0 评论 -
Poj1099
题目链接:http://poj.org/problemlist 题意:模拟题,画冰中水分子排列形式的二维结构。 代码:#include#include#include#define M 1024char s[M][M];int map[16][16];原创 2011-07-17 15:46:35 · 956 阅读 · 0 评论