摘要:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=117&page=show_problem&problem=2829 “Waiting for orders we held in the w 阅读全文
摘要:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2267 有一条n个头的恶龙,现在有m个骑士可以雇佣去杀死他,一个能力值为x的勇士可 阅读全文
摘要:
有n个重量和质量分别为wi,和vi的物品,从中选出总质量不超过W的物品,求价值最大值 input 4 2 3 1 2 3 4 2 2 5 output 7 #include<cstdio>#include<algorithm>#include<iostream>using namespace std 阅读全文
摘要:
http://poj.org/problem?id=3253 Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he nee 阅读全文
摘要:
X soldiers from the famous “FFF army'' is standing in a line, from left to right. You, as the captain of FFF, decides to have a number off, that is, e 阅读全文
摘要:
http://poj.org/problem?id=3069 Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, S 阅读全文
摘要:
http://poj.org/problem;jsessionid=F0726AFA441F19BA381A2C946BA81F07?id=3617 Description FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Fa 阅读全文
摘要:
难题就不说了,就说这几天做的水题,好多都是一次提交不过,还要再检查一次,然后才对,关键是好多都是输出问题,比如少个句号,少个什么其他符号,还有输出要隔一个空行什么的,我都没有,就是自己不认真,还有平时的for循环的参数都能搞糊涂,反正就是好多都是不认真造成的 以后啊,还是要认真(这句话已经说了好长时 阅读全文
摘要:
#include<cstdio>#include<stack>using namespace std;int main(){ stack<int> s; s.push(1); s.push(2); s.push(3); printf("%d\n",s.top());//是输出,但是这个数还在 s.p 阅读全文