
POJ 2800-2899
woniupengpeng
这个作者很懒,什么都没留下…
展开
-
POJ 2853 Sequence Sum Possibilities G++ 等差数列
#include <iostream>#include <cstdio>using namespace std;//英语 看博友分析 抄博友程序 等差数列 int main(){ int n; cin>>n; while(n--) { int a,b; cin>>a>>b; int jg=0; for(int i=2;i*(i+1)/2<=b;i++) { if((...原创 2017-03-04 18:57:33 · 319 阅读 · 0 评论 -
POJ 2895 Best SMS to Type G++
#include <iostream>#include <string>using namespace std;int an[]={1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4};//抄博友 int hao[]={2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8...原创 2017-03-04 22:06:50 · 224 阅读 · 0 评论 -
POJ 2845 01000001 G++
#include <iostream>#include <string>#include <algorithm>#include <utility> using namespace std;int main(){ int T; cin>>T; for(int o=0;o<T;o++) { str...原创 2017-03-04 18:49:34 · 276 阅读 · 0 评论 -
POJ 2833 The Average G++ 优先队列 巧妙 printf小数点后6位只能用浮点数
#include <iostream>#include <cstdio>#include <vector>#include <algorithm>#include <iomanip>#include <queue> #include <functional>using namespace...原创 2020-04-29 18:41:26 · 181 阅读 · 0 评论 -
POJ 2823 Sliding Window G++ 没掌握
<span title="Description">描述给你一个大小为n≤106的数组。有一个大小为k的滑动窗口,从数组的最左边移动到最右边。您只能在窗口中看到k个数字。每次滑动窗口向右移动一个位置。<span title="Following is an example:">以下是一个示例:<span title="The array is [1 3 -1 -3 5 3 6 7原创 2016-12-25 18:48:32 · 234 阅读 · 0 评论 -
POJ 2803 Defining Moment 笔记
将n条有前缀和后缀的单词,翻译成同义词组。原创 2017-07-05 15:42:19 · 242 阅读 · 0 评论 -
POJ 2800 Joseph‘s Problem G++ 约瑟夫环 数论 没掌握
给出n and k,求 ∑1(k mod i)。原创 2017-07-05 15:56:34 · 221 阅读 · 0 评论 -
POJ 2809 It's My Derivative 笔记
给出关于X的多项式。已知X,求多项式一阶导数的值。原创 2017-07-05 16:16:50 · 227 阅读 · 0 评论 -
POJ 2810 Take Your Vitamins 笔记
输入 A U R V,输出 V A U P % 。A表示一份食物中的某营养物质含量,U表示营养物质单位,R表示人类每天这种营养物质的需求量,V表示营养物质名称;P表示这份食物满足当天该营养物质需求的百分比,低于1%时,只打印营养物质名称。原创 2017-07-05 16:39:39 · 311 阅读 · 0 评论 -
POJ 2893 M × N Puzzle 笔记
M*N难题,只能交换与0相邻元素和0的位置,排成如图2所示形式为获胜。判断能否获胜。原创 2017-07-05 19:43:21 · 319 阅读 · 0 评论 -
POJ 2887 Big String 笔记
已知原始字符串,N个操作,操作 I ch p 表示将 ch 插入到字符串第 p 个字符前,操作 Q p 查询当前字符串第 p 个字符。原创 2017-07-05 20:03:18 · 217 阅读 · 0 评论 -
POJ 2871 A Simple Question of Chemistry G++
#include using namespace std;int main(){ double a[1000]; int n=0; while(1) { cin>>a[n]; if(a[n]==999) { break; } n++; } for(int i=0;i<n-1;i++) { cout.setf(ios_base::fixed,ios_原创 2016-11-11 13:55:41 · 301 阅读 · 0 评论 -
POJ 2897 Dramatic Multiplications 笔记
有趣的数例如102564,最后一位 k 是4,n 在这是4,4*102564=410256。已知 n 和 k 求最小的有趣的数。原创 2017-07-05 19:10:56 · 295 阅读 · 0 评论 -
POJ 2815 Context-Free Clock 笔记
如图,表坏了。已知某时刻时针和分针的顺时针夹角,和当时正确的时间。求坏的表12点时显示的时间。原创 2017-07-05 17:29:54 · 348 阅读 · 0 评论 -
POJ 2812 Extrusion 笔记
定制的钢丝。钢丝的截面是N个顶点的多边形,给出顶点坐标。已知钢丝体积,求钢丝长度。原创 2017-07-05 16:58:59 · 256 阅读 · 0 评论 -
POJ 2836 Rectangular Covering 已被翻译
描述在笛卡尔平面上给出n个点。 现在你必须使用一些矩形,其边与轴平行以覆盖它们。 每个点必须覆盖。一个点可以被几个矩形覆盖。 每个矩形应至少覆盖两个点,包括落在边框上的点。 矩形应具有整数尺寸。不允许使用退化情况(零面积的矩形)。 如何选择矩形以最小化它们的总面积?输入输入包括几个测试用例。 每个测试用例以包含单个整数n(2≤n≤15)的行开始。 接下来的n转载 2016-12-03 11:37:39 · 283 阅读 · 0 评论 -
POJ 2886 Who Gets the Most Candies? 已翻译
<span title="Description">描述<span title="N children are sitting in a circle to play a game.">N个孩子坐在一个圆圈玩游戏。子项按顺时针顺序从1到N编号。每个人在他/她的手上有一个非零整数的卡。游戏从第K个孩子开始,他告诉所有其他人在他的卡上的整数,跳出圈子。他的卡上的整数告诉下原创 2016-12-16 20:07:22 · 229 阅读 · 0 评论