05 2017 档案
摘要:Segments Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14178 Accepted: 4521 Description Given n segments in the two dimensional space, wr
阅读全文
摘要:Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 15060 Accepted: 7270 Description Calculate the number of toys that land in each bin of a pa
阅读全文
摘要:难度:1 难度:1 欢迎来到德莱联盟。。。。 德莱文。。。 德莱文在逃跑,卡兹克在追。。。。 我们知道德莱文的起点和终点坐标,我们也知道卡兹克的起点和 终点坐标,问:卡兹克有可能和德莱文相遇吗?,并且保证他们走的都是直线。
阅读全文
摘要:Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 35387 Accepted: 12816 Description A Bank plans to install a machine for cash withdrawal. Th
阅读全文
摘要:Description It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four lette
阅读全文
摘要:A. Heidi and Library (easy) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Your search
阅读全文
摘要:Description In Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jewelry with pearls in it. The Royal Pear
阅读全文
摘要:Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10659 Accepted: 5116 Description Few know that the cows have their own dictionary with W (1
阅读全文
摘要:矩形嵌套 描述有n个矩形,每个矩形可以用a,b来描述,表示长和宽。矩形X(a,b)可以嵌套在矩形Y(c,d)中当且仅当a<c,b<d或者b<c,a<d(相当于旋转X90度)。例如(1,5)可以嵌套在(6,2)内,但不能嵌套在(3,4)中。你的任务是选出尽可能多的矩形排成一行,使得除最后一个外,每一个
阅读全文
摘要:Subsequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14698 Accepted: 6205 Description A sequence of N positive integers (10 < N < 10
阅读全文
摘要:动物统计加强版 时间限制:3000 ms | 内存限制:150000 KB 难度:4 动物统计加强版 时间限制:3000 ms | 内存限制:150000 KB 难度:4
阅读全文
摘要:Time Limit: 5000MS Memory Limit: 128000K Total Submissions: 37340 Accepted: 9796 Description You are given a bunch of wooden sticks. Each endpoint of
阅读全文
摘要:子序列 时间限制:3000 ms | 内存限制:65535 KB 难度:5 子序列 时间限制:3000 ms | 内存限制:65535 KB 难度:5 给定一个序列,请你求出该序列的一个连续的子序列,使原串中出现的所有元素皆在该子序列中出现过至少1次。 如2 8 8 8 1 1,所求子串就是2 8
阅读全文
摘要:相同的雪花 时间限制:1000 ms | 内存限制:65535 KB 难度:4 相同的雪花 时间限制:1000 ms | 内存限制:65535 KB 难度:4
阅读全文
摘要:Goldbach's conjecture is one of the oldest unsolved problems in number theory and in all of mathematics. It states: Every even integer, greater than 2
阅读全文
摘要:1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题
阅读全文
摘要:士兵杀敌(五) 时间限制:2000 ms | 内存限制:65535 KB 难度:5 士兵杀敌(五) 时间限制:2000 ms | 内存限制:65535 KB 难度:5 南将军麾下有百万精兵,现已知共有M个士兵,编号为0~M,每次有任务的时候,总会有一批编号连在一起人请战(编号相近的人经常在一块,相互
阅读全文
摘要:joey97 Mail 0(0) Control Panel Sign Out Color the ball Problem Description N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到
阅读全文
摘要:士兵杀敌(二) 时间限制:1000 ms | 内存限制:65535 KB 难度:5 士兵杀敌(二) 时间限制:1000 ms | 内存限制:65535 KB 难度:5 南将军手下有N个士兵,分别编号1到N,这些士兵的杀敌数都是已知的。 小工是南将军手下的军师,南将军经常想知道第m号到第n号士兵的总杀
阅读全文
摘要:给一个包含小数的中缀表达式 求出它的值 首先转换为后缀表达式然后利用stack求出值 转换规则: 如果字符为'(' push else if 字符为 ')' 出栈运算符直到遇到‘(' else if 字符为‘+’,’-‘,’*‘,’/‘ { if 栈为空或者上一个运算符的优先级小于当前运算符 pus
阅读全文
摘要:Problem Description Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is cover
阅读全文
摘要:Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 8306 Accepted: 3130 Description Doubleville, a small town in Texas, was attacked by the ali
阅读全文
摘要:Phone List Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 29416 Accepted: 8774 Description Given a list of phone numbers, determine if it
阅读全文
摘要:描述 给定两个数n,m,其中m是一个素数。 将n(0<=n<=2^31)的阶乘分解质因数,求其中有多少个m。 注:^为求幂符号。
阅读全文
摘要:最少乘法次数 时间限制:1000 ms | 内存限制:65535 KB 难度:3 最少乘法次数 时间限制:1000 ms | 内存限制:65535 KB 难度:3 给你一个非零整数,让你求这个数的n次方,每次相乘的结果可以在后面使用,求至少需要多少次乘。如24:2*2=22(第一次乘),22*22=
阅读全文
摘要:描述一个街区有很多住户,街区的街道只能为东西、南北两种方向。住户只可以沿着街道行走。各个街道之间的间隔相等。用(x,y)来表示住户坐在的街区。例如(4,20),表示用户在东西方向第4个街道,南北方向第20个街道。现在要建一个邮局,使得各个住户到邮局的距离之和最少。求现在这个邮局应该建在那个地方使得所
阅读全文
摘要:迷宫寻宝(一) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 迷宫寻宝(一) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 一个叫ACM的寻宝者找到了一个藏宝图,它根据藏宝图找到了一个迷宫,这是一个很特别的迷宫,迷宫里有N个编过号的门(N<=5),它们分别
阅读全文
摘要:24 Point game 时间限制:3000 ms | 内存限制:65535 KB 难度:5 24 Point game 时间限制:3000 ms | 内存限制:65535 KB 难度:5 There is a game which is called 24 Point game. In this
阅读全文
摘要:一笔画问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 一笔画问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 zyc从小就比较喜欢玩一些小游戏,其中就包括画一笔画,他想请你帮他写一个程序,判断一个图是否能够用一笔画下来。 规定,所有的边都只能画一次,
阅读全文
摘要:You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk. Input Input sta
阅读全文
摘要:Sigma function is an interesting function in Number Theory. It is denoted by the Greek letter Sigma (σ). This function actually denotes the sum of all
阅读全文
摘要:It's said that Aladdin had to solve seven mysteries before getting the Magical Lamp which summons a powerful Genie. Here we are concerned about the fi
阅读全文
摘要:心急的C小加 时间限制:1000 ms | 内存限制:65535 KB 难度:4 心急的C小加 时间限制:1000 ms | 内存限制:65535 KB 难度:4 C小加有一些木棒,它们的长度和质量都已经知道,需要一个机器处理这些木棒,机器开启的时候需要耗费一个单位的时间,如果第i+1个木棒的重量和
阅读全文
摘要:过河问题 时间限制:1000 ms | 内存限制:65535 KB 难度:5 过河问题 时间限制:1000 ms | 内存限制:65535 KB 难度:5 在漆黑的夜里,N位旅行者来到了一座狭窄而且没有护栏的桥边。如果不借助手电筒的话,大家是无论如何也不敢过桥去的。不幸的是,N个人一共只带了一只手电
阅读全文
摘要:喷水装置(二) 时间限制:3000 ms | 内存限制:65535 KB 难度:4 喷水装置(二) 时间限制:3000 ms | 内存限制:65535 KB 难度:4
阅读全文
摘要:喷水装置(一) 时间限制:3000 ms | 内存限制:65535 KB 难度:3 喷水装置(一) 时间限制:3000 ms | 内存限制:65535 KB 难度:3
阅读全文
摘要:问题 A: 大红数星星 题目描述 “三角形十分的美丽,相信大家小学就学过三角形具有稳定性,三角形也是二维几何中最基本的必不可少的元素之……”,大红走在路上若有所思,突然抬头看到了天空中有很多很亮的星星划过,星星和他们划过的轨迹像极了一个无向图。于是好学的大红,就开始数起了“三角形”,1、2、3……数
阅读全文
摘要:Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for his success. He needs some bamboos for his
阅读全文
摘要:设计思路:控制台模式 初始化: 建立画面,初始化数据 游戏过程: 1.获取操作 2.修改数据 3.更新画面 结束: 关闭画面,delete动态分配数据 4.29日 创建游戏背景,实现飞机移动操作,实现子弹飞行 4.30日 实现游戏数据管理,飞机击落动画,随机出现敌机 代码: 5.1日 感觉类的编写处
阅读全文