上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页
摘要: Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 8306 Accepted: 3130 Description Doubleville, a small town in Texas, was attacked by the ali 阅读全文
posted @ 2017-05-14 09:04 joeylee97 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Phone List Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 29416 Accepted: 8774 Description Given a list of phone numbers, determine if it 阅读全文
posted @ 2017-05-11 19:17 joeylee97 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 描述 给定两个数n,m,其中m是一个素数。 将n(0<=n<=2^31)的阶乘分解质因数,求其中有多少个m。 注:^为求幂符号。 阅读全文
posted @ 2017-05-11 17:19 joeylee97 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 最少乘法次数 时间限制:1000 ms | 内存限制:65535 KB 难度:3 最少乘法次数 时间限制:1000 ms | 内存限制:65535 KB 难度:3 给你一个非零整数,让你求这个数的n次方,每次相乘的结果可以在后面使用,求至少需要多少次乘。如24:2*2=22(第一次乘),22*22= 阅读全文
posted @ 2017-05-11 16:17 joeylee97 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: 描述一个街区有很多住户,街区的街道只能为东西、南北两种方向。住户只可以沿着街道行走。各个街道之间的间隔相等。用(x,y)来表示住户坐在的街区。例如(4,20),表示用户在东西方向第4个街道,南北方向第20个街道。现在要建一个邮局,使得各个住户到邮局的距离之和最少。求现在这个邮局应该建在那个地方使得所 阅读全文
posted @ 2017-05-11 15:45 joeylee97 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: 迷宫寻宝(一) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 迷宫寻宝(一) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 一个叫ACM的寻宝者找到了一个藏宝图,它根据藏宝图找到了一个迷宫,这是一个很特别的迷宫,迷宫里有N个编过号的门(N<=5),它们分别 阅读全文
posted @ 2017-05-11 09:00 joeylee97 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-05-10 20:50 joeylee97 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 一笔画问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 一笔画问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 zyc从小就比较喜欢玩一些小游戏,其中就包括画一笔画,他想请你帮他写一个程序,判断一个图是否能够用一笔画下来。 规定,所有的边都只能画一次, 阅读全文
posted @ 2017-05-09 21:20 joeylee97 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-05-09 16:42 joeylee97 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-05-09 11:22 joeylee97 阅读(970) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页