摘要: You are given n segments on the coordinate axis Ox and the number k. The point is satisfied if it belongs to at least k segments. Find the smallest (b 阅读全文
posted @ 2017-08-09 17:49 lch316 阅读(259) 评论(0) 推荐(0)
摘要: Arkady needs your help again! This time he decided to build his own high-speed Internet exchange point. It should consist of n nodes connected with mi 阅读全文
posted @ 2017-08-04 17:31 lch316 阅读(210) 评论(0) 推荐(0)
摘要: #include"stdio.h"#include"cstdio"#include"algorithm"#include"string.h"using namespace std;/*********************************************************** 阅读全文
posted @ 2017-07-19 09:45 lch316 阅读(147) 评论(0) 推荐(0)
摘要: Description qwb遇到了一个问题:将分数a/b化为小数后,小数点后第n位的数字是多少? 做了那么多题,我已经不指望你能够帮上他了。。。 qwb遇到了一个问题:将分数a/b化为小数后,小数点后第n位的数字是多少? 做了那么多题,我已经不指望你能够帮上他了。。。 Input 多组测试数据,处 阅读全文
posted @ 2017-06-06 20:55 lch316 阅读(178) 评论(0) 推荐(0)
摘要: 问题描述 今天Jack送个rose一个神奇的礼物“魔力手环”。 魔力手环上面有n个数字(构成一个环),当这个魔力手环每次使用魔力的时候就会发生一种奇特的变化:每个数字会变成自己跟后面一个数字的和(最后一个数字的后面一个数字是第一个),一旦某个位置的数字大于等于100就马上对100取模(比如某个位置变 阅读全文
posted @ 2017-05-19 21:17 lch316 阅读(135) 评论(0) 推荐(0)
摘要: A - Spreadsheets CodeForces - 1B In the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first co 阅读全文
posted @ 2017-04-26 22:02 lch316 阅读(280) 评论(0) 推荐(0)
摘要: A - 最大报销额 HDU - 1864 现有一笔经费可以报销一定额度的发票。允许报销的发票类型包括买图书(A类)、文具(B类)、差旅(C类),要求每张发票的总额不得超过1000元,每张发票上,单项物品的价值不得超过600元。现请你编写程序,在给出的一堆发票中找出可以报销的、不超过给定额度的最大报销 阅读全文
posted @ 2017-04-26 21:42 lch316 阅读(158) 评论(0) 推荐(0)
摘要: A - Twin Prime Conjecture HDU - 3792 If we define dn as: dn = pn+1-pn, where pi is the i-th prime. It is easy to see that d1 = 1 and dn=even for n>1. 阅读全文
posted @ 2017-04-26 21:37 lch316 阅读(322) 评论(0) 推荐(0)
摘要: A - Radar Installation POJ - 1328 Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small isla 阅读全文
posted @ 2017-04-26 21:26 lch316 阅读(295) 评论(0) 推荐(0)
摘要: A - 敌兵布阵 C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地 阅读全文
posted @ 2017-04-26 21:06 lch316 阅读(171) 评论(0) 推荐(0)