链接:http://acm.hdu.edu.cn/showproblem.php?pid=1285
Problem Description
有N个比赛队(1
 
Input
输入有若干组,每组中的第一行为二个数N(1
 
Output
给出一个符合要求的排名。输出时队伍号之间有空格,最后一名后面没有空格。
其他说明:符合条件...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 10:15:18   
                                阅读次数:
323
                             
                         
                    
                        
                            
                            
                                HDU 1754
Problem Description
很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。
这让很多学生很反感。
不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。
 
Input
本题目包含多组测试,请处理到文件结束。
在每个测...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 09:55:59   
                                阅读次数:
300
                             
                         
                    
                        
                            
                            
                                题意:给你n个数Nnum[ i ],表示每次只能取Nnum[ i ]个数。
m个问题:每次给你 l 堆石子,每堆有num个石子,问先手是否会赢。
Sample Input
2 2 5
3
2 5 12
3 2 4 7
4 2 3 7 12
5 1 2 3 4 5
3
2 5 12
3 2 4 7
4 2 3 7 12
0
 
Sample Output...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 09:49:40   
                                阅读次数:
249
                             
                         
                    
                        
                            
                            
                                【原题】
1911: [Apio2010]特别行动队
Time Limit: 4 Sec  Memory Limit: 64 MB
Submit: 2134  Solved: 911
[Submit][Status]
Description
Input
Output
Sample Input
4
-1 10 -20 
2 2 3 4 
...
                            
                            
                         
                    
                        
                            
                            
                                【原题】
3156: 防御准备
Time Limit: 10 Sec  Memory Limit: 512 MB
Submit: 198  Solved: 107
[Submit][Status]
Description
Input
第一行为一个整数N表示战线的总长度。
第二行N个整数,第i个整数表示在位置i放置守卫塔的花费Ai。
Output
...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 08:22:07   
                                阅读次数:
318
                             
                         
                    
                        
                            
                            
                                /***********************************************************************
第一题 求n个整数的最大公约数
输入
	第一行: n个整数
	第二行:各个整数 以空格隔开
输出;公约数
例子: 
input: 4
	  10 15 20 25
output: 5
*********************************...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 08:17:28   
                                阅读次数:
336
                             
                         
                    
                        
                            
                            
                                【Question】
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the p...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 04:17:18   
                                阅读次数:
259
                             
                         
                    
                        
                            
                            
                                1. 怎么导入PlausibleDatabase.framework框架
先下载PlausibleDatabase.framework框架包,然后把该包直接加入到库中,然后再加入#import 头文件
下载地址:http://code.google.com/p/pldatabase/ 在这里可以下载和查看文档和代码.
第三方SQLITE封装库Pldatabase
基...
                            
                            
                                分类:
数据库   时间:
2014-05-07 04:07:35   
                                阅读次数:
564
                             
                         
                    
                        
                            
                            
                                #! /usr/bin/env racket
#lang racket
#|
  NAME:
     getModelNumber.rkt
     This program is used to get model number based on the
     input model file name.
  USAGE:
     ./getModelNumber.rkt modelfi...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 03:17:09   
                                阅读次数:
323
                             
                         
                    
                        
                            
                            
                                For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.
 
Input
The first line is an integer T, which is the the...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 19:21:10   
                                阅读次数:
290