poj
纯纯的心儿
每天都在赚事业。。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj 2424 Flo's Restaurant
该题是一道队列的题目 , 也是一道模拟题, 考虑桌子时间小的,只要有桌子且等待时间在30以内, 就可入座,tt即可加一。。 借鉴了下大神的思路, 用来优先队列的写法和原始的模拟队列写法。。原始代码:#include#include#include#includeusing namespace std;int main(){ int原创 2015-04-02 21:39:02 · 370 阅读 · 0 评论 -
POJ-1068 Parencodings
题目表述:Problem DescriptionLet S = s1 s2 … s2n be a well-formed string of parentheses. S can be encoded in two different ways:By an integer sequence P = p1 p2 … pn where pi is the number of le原创 2015-03-23 21:27:26 · 542 阅读 · 0 评论 -
poj 2871 A Simple Question of Chemistry
该题是个水题, 题意就是输入999之前的数时,第二个数开始,每输入一个数的时候,减去前一个数输出差,最后999时输出End of Output#include#includeint main(){ double a,b; scanf("%lf",&a); while(~scanf("%lf",&b)) { if(b==999) { prin原创 2015-03-24 23:57:05 · 470 阅读 · 0 评论 -
poj 3122 Pie
Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming t原创 2015-04-14 23:48:48 · 306 阅读 · 0 评论 -
poj 1835 宇航员
问题描述: 宇航员在太空中迷失了方向,在他的起始位置现在建立一个虚拟xyz坐标系,称为绝对坐标系,宇航员正面的方向为x轴正方向,头顶方向为z轴正方向,则宇航员的初始状态如下图所示: 现对六个方向分别标号,x,y,z正方向分别为0,1,2,负方向分别为3,4,5;称它们为绝对方向。宇航员在宇宙中只沿着与绝对坐标系xyz轴平行的方向行走,但是他不知道自己当前绝对坐标和自己面向的绝对原创 2015-04-24 21:25:26 · 979 阅读 · 0 评论 -
Multiplication Puzzle POJ 1651
DescriptionThe multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of point原创 2015-04-16 23:11:24 · 480 阅读 · 0 评论
分享