08 2018 档案

摘要:51Nod1256 乘法逆元 Description 给出2个数M和N(M include include include include include include include include include include include include include include 阅读全文
posted @ 2018-08-30 09:48 caomp 阅读(227) 评论(0) 推荐(0)
摘要:HihoCoder1473 : 小Ho的强迫症 描述 小Ho在一条笔直的街道上散步。街道上铺着长度为L的石板,所以每隔L距离就有一条石板连接的缝隙,如下图所示。 小Ho在散步的时候有奇怪的强迫症,他不希望脚踩在石板的缝隙上。(如果小Ho一只脚的脚尖和脚跟分别处于一条缝隙的两侧,我们就认为他踩在了缝隙 阅读全文
posted @ 2018-08-30 09:44 caomp 阅读(132) 评论(0) 推荐(0)
摘要:青蛙的约会 | Time Limit: 1000MS | | Memory Limit: 10000K | | | | | | Total Submissions: 129037 | | Accepted: 28227 | Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必 阅读全文
posted @ 2018-08-30 09:24 caomp 阅读(99) 评论(0) 推荐(0)
摘要:51Nod1711 平均数 Description LYK有一个长度为n的序列a。 他最近在研究平均数。 他甚至想知道所有区间的平均数,但是区间数目实在太多了。 为了方便起见,你只要告诉他所有区间(n (n+1)/2个区间)中第k大的平均数就行了。 Input c++ pragma comment( 阅读全文
posted @ 2018-08-23 11:13 caomp 阅读(156) 评论(0) 推荐(0)
摘要:HDU2852 KiKi's K Number Problem Description For the k th number, we all should be very familiar with it. Of course,to kiki it is also simple. Now Kiki 阅读全文
posted @ 2018-08-23 10:18 caomp 阅读(155) 评论(0) 推荐(0)
摘要:HihoCoder1336 Matrix Sum 描述 You are given an N × N matrix. At the beginning every element is 0. Write a program supporting 2 operations: \1. Add x y v 阅读全文
posted @ 2018-08-22 20:33 caomp 阅读(137) 评论(0) 推荐(0)
摘要:CSU1770: 按钮控制彩灯实验 Description 应教学安排,yy又去开心的做电学实验了。实验的内容分外的简单一串按钮通过编程了的EEPROM可以控制一串彩灯。然而选择了最low的一种一对一的控制模式,并很快按照实验指导书做完实验的yy马上感觉到十分无趣。于是他手指在一排按钮上无聊的滑来滑 阅读全文
posted @ 2018-08-21 17:10 caomp 阅读(232) 评论(0) 推荐(0)
摘要:POJ2299 Ultra QuickSort Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n disti 阅读全文
posted @ 2018-08-21 17:04 caomp 阅读(143) 评论(0) 推荐(0)
摘要:AtCoder Beginner Contest 106 D 题目 Problem Statement In Takahashi Kingdom, there is a east west railroad and N cities along it, numbered 1, 2, 3, ..., 阅读全文
posted @ 2018-08-20 10:41 caomp 阅读(243) 评论(0) 推荐(0)
摘要:AtCoder Beginner Contest 105 D Candy Distribution Problem Statement There are N boxes arranged in a row from left to right. The i th box from the left 阅读全文
posted @ 2018-08-13 15:51 caomp 阅读(411) 评论(0) 推荐(0)
摘要:AtCoder Beginner Contest 105 C Base 2 Number Problem Statement Given an integer N , find the base −2 representation of N . Here, S is the base −2 repr 阅读全文
posted @ 2018-08-13 15:36 caomp 阅读(297) 评论(0) 推荐(0)
摘要:HDU2087 剪花布条 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input 输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个 阅读全文
posted @ 2018-08-11 17:18 caomp 阅读(106) 评论(0) 推荐(0)
摘要:UVaLive3942 Remember the Word Neal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a phot 阅读全文
posted @ 2018-08-11 17:02 caomp 阅读(151) 评论(0) 推荐(0)
摘要:HDU5763 Another Meaning As is known to all, in many cases, a word has two meanings. Such as “hehe”, which not only means “hehe”, but also means “excus 阅读全文
posted @ 2018-08-11 16:27 caomp 阅读(138) 评论(0) 推荐(0)
摘要:HDU1711 Number Sequence Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 include include include include i 阅读全文
posted @ 2018-08-11 16:11 caomp 阅读(147) 评论(0) 推荐(0)
摘要:CSU1216 异或最大值 Description 给定一些数,求这些数中两个数的异或值最大的那个值 Input 多组数据 。第一行为数字个数n,1 include include define ll long long using namespace std; const int MAXN = 4 阅读全文
posted @ 2018-08-11 15:57 caomp 阅读(514) 评论(0) 推荐(0)
摘要:HDU1251 统计难题 Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给I 阅读全文
posted @ 2018-08-11 15:50 caomp 阅读(126) 评论(0) 推荐(0)
摘要:POJ1200 Crazy Search | Time Limit: 1000MS | | Memory Limit: 65536K | | | | | | Total Submissions: 32331 | | Accepted: 8902 | Description Many people l 阅读全文
posted @ 2018-08-11 15:41 caomp 阅读(208) 评论(0) 推荐(0)
摘要:POJ1157 LITTLE SHOP OF FLOWERS(dp) Description You want to arrange the window of your flower shop in a most pleasant way. You have F bunches of flower 阅读全文
posted @ 2018-08-09 10:26 caomp 阅读(441) 评论(0) 推荐(0)
摘要:HDU 1599 find the mincost route Problem Description 杭州有N个景区,景区之间有一些双向的路来连接,现在8600想找一条旅游路线,这个路线从A点出发并且最后回到A点,假设经过的路线为V1,V2,....VK,V1,那么必须满足K 2,就是说至除了出发 阅读全文
posted @ 2018-08-08 21:14 caomp 阅读(165) 评论(0) 推荐(0)
摘要:HDU1384 Intervals Problem Description You are given n closed, integer intervals [ai, bi] and n integers c1, ..., cn. Write a program that: \ reads the 阅读全文
posted @ 2018-08-08 20:55 caomp 阅读(197) 评论(0) 推荐(0)
摘要:HDU 1874 畅通工程续 Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要 阅读全文
posted @ 2018-08-08 20:25 caomp 阅读(122) 评论(0) 推荐(0)
摘要:Free DIY Tour Problem Description Weiwei is a software engineer of ShiningSoft. He has just excellently fulfilled a software project with his fellow w 阅读全文
posted @ 2018-08-08 20:13 caomp 阅读(143) 评论(0) 推荐(0)
摘要:HDU1289 带权并查集 Problem Description Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they featu 阅读全文
posted @ 2018-08-08 20:06 caomp 阅读(213) 评论(0) 推荐(0)
摘要:D We Love ABC 题目 Problem Statement The ABC number of a string T is the number of triples of integers ( i , j , k ) that satisfy all of the following c 阅读全文
posted @ 2018-08-06 22:02 caomp 阅读(233) 评论(0) 推荐(0)
摘要:C All Green 题目 Problem Statement A programming competition site AtCode provides algorithmic problems. Each problem is allocated a score based on its d 阅读全文
posted @ 2018-08-06 21:50 caomp 阅读(221) 评论(0) 推荐(0)
摘要:UvaLive 3902 Network Description Consider a tree network with n nodes where the internal nodes correspond to servers and the terminal nodes correspond 阅读全文
posted @ 2018-08-03 17:23 caomp 阅读(318) 评论(0) 推荐(1)
摘要:ZOJ1633 Big String Time Limit: 2 Seconds Memory Limit: 65536 KB Description We will construct an infinitely long string from two short strings: A = "^ 阅读全文
posted @ 2018-08-02 19:34 caomp 阅读(268) 评论(0) 推荐(0)
摘要:汉诺塔II Problem Description 经典的汉诺塔问题经常作为一个递归的经典例题存在。可能有人并不知道汉诺塔问题的典故。汉诺塔来源于印度传说的一个故事,上帝创造世界时作了三根金刚石柱子,在一根柱子上从下往上按大小顺序摞着64片黄金圆盘。上帝命令婆罗门把圆盘从下面开始按大小顺序重新摆放在 阅读全文
posted @ 2018-08-02 19:27 caomp 阅读(364) 评论(0) 推荐(0)
摘要:Uva12034 Race Description Disky and Sooma, two of the biggest mega minds of Bangladesh went to a far country. They ate, coded and wandered around, eve 阅读全文
posted @ 2018-08-02 16:56 caomp 阅读(257) 评论(0) 推荐(0)
摘要:URAL 1081. Binary Lexicographic Sequence Time limit: 0.5 second Memory limit: 64 MB Description Consider all the sequences with length (0 include incl 阅读全文
posted @ 2018-08-02 16:30 caomp 阅读(114) 评论(0) 推荐(0)
摘要:POJ1664 放苹果 | Time Limit: 1000MS | | Memory Limit: 10000K | | | | | | Total Submissions: 37195 | | Accepted: 22898 | Description 把M个同样的苹果放在N个同样的盘子里,允许 阅读全文
posted @ 2018-08-02 16:06 caomp 阅读(126) 评论(0) 推荐(0)
摘要:HDU2050 折线分割平面 (递推) Problem Description 我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所示。 Input 输入数据的第一行是一 阅读全文
posted @ 2018-08-02 15:57 caomp 阅读(245) 评论(0) 推荐(0)
摘要:HDU2899 Strange fuction Problem Description Now, here is a fuction: F(x) = 6 x^7+8 x^6+7 x^3+5 x^2 y x (0 include include include include include incl 阅读全文
posted @ 2018-08-02 09:09 caomp 阅读(179) 评论(0) 推荐(0)
摘要:CSU1976 搬运工小明 Description 作为老人的小明非常忧伤,因为他马上要被流放到本部去了,住进全左家垅最有历史感的11舍真是一件非常荣幸的事情。 搬行李是个体力活,小明发现自己的行李太多啦,所以他决定去买很多个袋子来装走。到了超市的小明发现,不同大小的袋子居然价格一样???虽然买最大 阅读全文
posted @ 2018-08-02 08:39 caomp 阅读(339) 评论(0) 推荐(0)