上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include //#pragma GCC optimize(2) using nam... 阅读全文
posted @ 2019-01-30 15:29 NKDEWSM 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Bessie is planning the annual Great Cow Gathering for cows all across the country and, of course, she would like to choose the most convenient lo 阅读全文
posted @ 2019-01-30 10:04 NKDEWSM 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 题目描述 假设你有一条长度为5的木版,初始时没有涂过任何颜色。你希望把它的5个单位长度分别涂上红、绿、蓝、绿、红色,用一个长度为5的字符串表示这个目标:RGBGR。 每次你可以把一段连续的木版涂成一个给定的颜色,后涂的颜色覆盖先涂的颜色。例如第一次把木版涂成RRRRR,第二次涂成RGGGR,第三次涂 阅读全文
posted @ 2019-01-29 19:39 NKDEWSM 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给出N个点,让你画一个最小的包含所有点的圆。 输入输出格式 输入格式: 先给出点的个数N,2<=N<=100000,再给出坐标Xi,Yi.(-10000.0<=xi,yi<=10000.0) 输出格式: 输出圆的半径,及圆心的坐标,保留10位小数 输入输出样例 输入样例#1: 复制 6 8 阅读全文
posted @ 2019-01-28 15:39 NKDEWSM 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 题目描述 It's Bessie's birthday and time for party games! Bessie has instructed the N (1 <= N <= 100,000) cows conveniently numbered 1..N to sit in a circ 阅读全文
posted @ 2019-01-27 22:01 NKDEWSM 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Farmer John is leaving his house promptly at 6 AM for his daily milking of Bessie. However, the previous evening saw a heavy rain, and the fields 阅读全文
posted @ 2019-01-27 21:46 NKDEWSM 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Given the value of N , you will have to nd the value of G . The de nition of G is given below: G = i<N ∑ i =1 j  N ∑ j = i +1 GCD ( i; j ) Here GCD ( 阅读全文
posted @ 2019-01-26 17:02 NKDEWSM 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 题目描述 萧薰儿是古国的公主,平时的一大爱好是采花。 今天天气晴朗,阳光明媚,公主清晨便去了皇宫中新建的花园采花。 花园足够大,容纳了n朵花,花有c种颜色(用整数1-c表示),且花是排成一排的,以便于公主采花。公主每次采花后会统计采到的花的颜色数,颜色数越多她会越高兴!同时,她有一癖好,她不允许最后 阅读全文
posted @ 2019-01-26 15:38 NKDEWSM 阅读(182) 评论(0) 推荐(0) 编辑
摘要: In most professional sporting events, cheerleaders play a major role in entertaining the spectators. Their roles are substantial during breaks and pri 阅读全文
posted @ 2019-01-26 11:24 NKDEWSM 阅读(218) 评论(0) 推荐(0) 编辑
摘要: There is a pond with a rectangular shape. The pond is divided into a grid with H rows and W columns of squares. We will denote the square at the i-th 阅读全文
posted @ 2019-01-25 14:16 NKDEWSM 阅读(227) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页