上一页 1 ··· 4 5 6 7 8
摘要: 星际之门(一)时间限制:3000 ms | 内存限制:65535 KB难度:3描述公元3000年,子虚帝国统领着N个星系,原先它们是靠近光束飞船来进行旅行的,近来,X博士发明了星际之门,它利用虫洞技术,一条虫洞可以连通任意的两个星系,使人们不必再待... 阅读全文
posted @ 2017-07-17 18:20 _大美 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 布线问题时间限制:1000 ms | 内存限制:65535 KB难度:4描述南阳理工学院要进行用电线路改造,现在校长要求设计师设计出一种布线方式,该布线方式需要满足以下条件:1、把所有的楼都供上电。2、所用电线花费最少输入第一行是一个整数n表示有n组测试数据。(n#i... 阅读全文
posted @ 2017-07-17 18:08 _大美 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 一笔画问题时间限制:3000 ms | 内存限制:65535 KB难度:4描述zyc从小就比较喜欢玩一些小游戏,其中就包括画一笔画,他想请你帮他写一个程序,判断一个图是否能够用一笔画下来。规定,所有的边都只能画一次,不能重复画。 输入第一行只有一个正整数N(N#i... 阅读全文
posted @ 2017-07-17 17:58 _大美 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Grandpa's EstateBeing the only living descendant of his grandfather, Kamran the Believer inherited all of the grandpa's belongings. Th... 阅读全文
posted @ 2017-07-16 17:55 _大美 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Space AntTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4501 Accepted: 2834DescriptionThe most exciting space discovery occ... 阅读全文
posted @ 2017-07-16 17:51 _大美 阅读(145) 评论(0) 推荐(0) 编辑
摘要: DescriptionOnce upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King... 阅读全文
posted @ 2017-07-16 17:45 _大美 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量:1. 1≤a≤n,1≤b≤m;2. a×b 是 2016 的倍数。Input输入包含不超过 30 组数据。每组数据包含两个整数 n,m (1≤n,m≤10 9).Output对于每组数据,输出一个... 阅读全文
posted @ 2017-07-16 17:42 _大美 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1262: 魔法宝石题目描述小s想要创造n种魔法宝石。小s可以用ai的魔力值创造一棵第i种魔法宝石,或是使用两个宝石合成另一种宝石(不消耗魔力值)。请你帮小s算出合成某种宝石的所需的最小花费。输入第一行为数据组数T(1≤T≤3)。对于每组数据,首先一行为n,m(1≤n... 阅读全文
posted @ 2017-07-16 17:39 _大美 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1143 - 计算几何你瞎暴力Time Limit:5s Memory Limit:256MByteSubmissions:1735Solved:341DESCRIPTION今天HHHH考完了期末考试,他在教学楼里闲逛,他看着教学楼里一间间的教室,于是开始思考:如果从... 阅读全文
posted @ 2017-07-16 10:09 _大美 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/tonghao/p/4708661.html//数组模拟邻接表只是储存图的方法,要求最短路还是要用其他算法。SPFA迪杰斯特拉等等算法。#include#include#include#include#include#in... 阅读全文
posted @ 2017-07-15 10:24 _大美 阅读(321) 评论(0) 推荐(0) 编辑
摘要: Problem A Salty FishAccept: 108 Submit: 400Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description海边躺着一排咸鱼,一些有梦想的咸鱼成功翻... 阅读全文
posted @ 2017-07-15 08:35 _大美 阅读(963) 评论(0) 推荐(0) 编辑
摘要: 用归并排序求逆序数。http://blog.csdn.net/dlengong/article/details/7594919http://blog.csdn.net/sevenmit/article/details/9081831 #include#include#... 阅读全文
posted @ 2017-05-20 15:49 _大美 阅读(120) 评论(0) 推荐(0) 编辑
摘要: We call a figure made of points is left-right symmetric as it is possible to fold the sheet of paper along a vertical line and to cut ... 阅读全文
posted @ 2017-05-20 15:28 _大美 阅读(127) 评论(0) 推荐(0) 编辑
摘要: The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian gove... 阅读全文
posted @ 2017-03-25 12:39 _大美 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Leading and Trailing You are given two integers: n and k, your task is to find the most significant three digits, and least significan... 阅读全文
posted @ 2017-03-20 17:05 _大美 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1000 MS Memory Limit: 131072 K DescriptionThere are two lists and they may be intersected with each other. You must jud... 阅读全文
posted @ 2017-03-20 16:41 _大美 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 未名湖是圆形而且如果中间有中断就算是从新开始。。 Weiming Lake, also named “Un-named Lake”, is the most famous scenic spot in Peking University. It is located ... 阅读全文
posted @ 2016-11-26 20:47 _大美 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 快速幂取模原理为(a*b)%c=(a%c*b%c)%c。 用于求幂之后取模。 例题: Description求a的b次方后四位。Input输入的第一行是T(不超过1000)。T表示测试部分的个数,每一部分都要求单独计算并按照要求输出结果。接下来是每个测试部分。... 阅读全文
posted @ 2016-11-26 17:48 _大美 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 二分法 D - 又是一道签到题Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status P... 阅读全文
posted @ 2016-11-25 21:46 _大美 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多少?Input 输入数据首先包括一个整数C,表示测试实例的个数,每个测试实例的第一行是一个整数N(1 #include#include#include#includeusi... 阅读全文
posted @ 2016-11-17 15:50 _大美 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8