- 博客(30)
- 资源 (8)
- 收藏
- 关注
原创 士兵杀敌(五)NSOJ
士兵杀敌(五)时间限制: 2000ms内存限制: 128000KB64位整型: Java 类名:上一题 提交 运行结果 统计 讨论版 下一题类型: 没有 没有 难度 lv.1 lv.2 lv.3 lv.4 lv.5 lv.
2017-07-31 15:43:59 337
转载 单调递增子序列(二) nsoj
点击打开链接单调递增子序列(二)时间限制: 1000ms内存限制: 128000KB64位整型: Java 类名:上一题 提交 运行结果 统计 讨论版 下一题类型: 没有 没有 难度 lv.1 lv.2 lv.3 lv.4
2017-07-31 14:11:02 328
原创 Fence Repair POJ - 3253
https://cn.vjudge.net/problem/15032/originFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of
2017-07-29 20:50:19 283
原创 Saruman's Army POJ - 3069
Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stones, known as palantirs, among the troops. Each pala
2017-07-27 19:44:35 272
原创 连续最大积 hdu 4567
连续最大积时间限制: 1000ms内存限制: 32768KBHDU ID: 456164位整型: Java 类名:上一题 提交 运行结果 统计 讨论版 下一题题目描述小明和他的好朋友小西在玩一个游戏,由电脑随机生成一个由-2,0,2三个数组成的数组,并且约定,谁先算出这个数组中某一段连续元素的积的最大值,就算
2017-07-26 09:18:13 662
原创 次方求模 NYOJ
如果看不懂代码,可以点开链接,http://baike.baidu.com/view/379209.htm次方求模时间限制:1000 ms | 内存限制:65535 KB难度:3描述求a的b次方对c取余的值 输入第一行输入一个整数n表示测试数据的组数(n每组测试只有一行,其中有三个正整数a,b,c(1=输出
2017-07-26 08:22:50 428
原创 昂贵的聘礼 POJ - 1062
年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。"探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,或者替他弄来其他的东西,
2017-07-25 17:21:23 274
原创 Subway FZU - 2234
You have just moved from a quiet Waterloo neighbourhood to a big, noisy city. Instead of getting to ride your bike to school every day, you now get to walk and take the subway. Because you don't want
2017-07-25 17:12:41 318
原创 六度分离 HDU 1869
六度分离 1967年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为“六度分离”理论(six degrees of separation)。虽然米尔格兰姆的理论屡屡应验,一直也有很多社会学家对其兴趣浓厚,但
2017-07-21 16:14:54 350
原创 find the most comfortable road HDU - 1598
find the most comfortable roadXX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要
2017-07-20 19:48:24 289
原创 Five-In-a-Row CodeForces - 825B
Five-In-a-Row Alice and Bob play 5-in-a-row game. They have a playing field of size 10 × 10. In turns they put either crosses or noughts, one at a time. Alice puts crosses and Bob puts noughts.In ...
2017-07-20 19:27:47 411
原创 Meteor Shower POJ - 3669
Meteor ShowerBessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they hit. Anxious for her safety, she vows to f
2017-07-20 16:25:20 291
原创 小希的迷宫 HDU - 1272
小希的迷宫 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(除非走了回头路)。小希现在把她的设计图给
2017-07-20 10:00:36 274
原创 Find The Multiple POJ - 1426
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there...
2017-07-20 09:40:19 200
原创 畅通工程再续 HDU 1875
畅通工程再续时间限制: 1000ms内存限制: 32768KBHDU ID: 187564位整型: Java 类名:上一题 提交 运行结果 统计 讨论版 下一题题目描述相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,
2017-07-19 12:49:17 258
原创 Fill UVA - 10603
Fill There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greaterthan 200). The first and the second jug are initially empty, while the third is comp
2017-07-17 10:48:03 239
原创 Dating with girls(2) HDU - 2579
Dating with girls(2)If you have solved the problem Dating with girls(1).I think you can solve this problem too.This problem is also about dating with girls. Now you are in a maze and the girl you
2017-07-16 12:32:29 495
原创 N皇后问题 HDU - 2553
N皇后问题在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若干行,每行一个正整数,表示对应输入行的皇后的不同放置数量。
2017-07-16 12:21:08 226
原创 A计划 HDU - 2102
A计划可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。 现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主的位置用P表示,时空传输机用#
2017-07-16 12:07:57 429
原创 The Pilots Brothers' refrigerator POJ --2965
The Pilots Brothers' refrigeratorThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles on the refrigerato
2017-07-16 11:57:17 258
原创 Prime Path POJ--3126
Prime Path The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It
2017-07-16 11:49:21 235
原创 Sum It Up NSOJ
Sum It Up时间限制: 1000ms内存限制: 32768KBHDU ID: 125864位整型: Java 类名:上一题 提交 运行结果 统计 讨论版 下一题类型: 没有 没有 难度 lv.1 lv.2 lv.3 lv
2017-07-14 20:32:43 376
原创 Dice HDU 5012
DiceThere are 2 special dices on the table. On each face of the dice, a distinct number was written. Consider a 1.a 2,a 3,a 4,a 5,a 6 to be numbers written on top face, bottom face, left face, r
2017-07-14 16:59:28 304
原创 Flip Game -- POJ -- 1753
Flip GameFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying eit...
2017-07-14 11:34:22 329
原创 Sticks --UVA - 307
SticksDescription George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how man...
2017-07-14 10:35:46 542
原创 Pascal's Travels HDU - 1208
Pascal's TravelsAn n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimate path from the upper left corner to the lower ri
2017-07-13 22:01:53 320
原创 FZU 1046 Tempter of the Bone
Tempter of the BoneThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking.
2017-07-12 10:41:16 215
原创 POJ 1724 ROADS
ROADS N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it :
2017-07-12 10:32:23 208
原创 Bone Collector
N - Bone Collector Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to th
2017-07-10 14:41:40 272
原创 ZOJ Problem Set - 2412 Farm Irrigation
Farm IrrigationBenny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square h
2017-07-10 13:24:58 255
spring和struts和hibernate最简单的整合
2018-11-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人