switch 1: 在条件语句中,可以写多条的语句 2: 也可以不添加语句package mainimport ( "fmt" "time")func main() { i := 2 fmt.Println("write ", i, " as ") switch ...
分类:
其他好文 时间:
2015-03-12 14:36:21
阅读次数:
121
Language:
Default
Hie with the Pie
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 5057
Accepted: 2695
Description
The Pizazz Pizzeria prides itself in...
分类:
其他好文 时间:
2015-03-12 13:23:56
阅读次数:
180
pairs
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1056 Accepted Submission(s): 372
Problem Description
John has n points
o...
分类:
其他好文 时间:
2015-03-12 13:21:41
阅读次数:
131
最长回文
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 9418 Accepted Submission(s): 3238
Problem Description
给出一个只由小写英文字符a,b,c......
分类:
编程语言 时间:
2015-03-12 11:33:55
阅读次数:
132
//主要是生成随机数,但是rand()函数生成随机数区间为[0,RAND_MAX],
//RAND_MAX至少为32767(2e15-1),并且在不同条件下数值可能不同
//下面用放大的方式将区间放大(代码来自刘汝佳)#include#include //time()#include //srand()+rand()int n = 100, m = 100000;//这个函数是取得[0,1]区间内...
分类:
编程语言 时间:
2015-03-12 11:32:44
阅读次数:
194
A thousand, thousand tender thanks for not having forgotten me. My son just brought me your letter. With what ardor I read it and yet it has taken a deal of time, because there is not a word which has...
分类:
其他好文 时间:
2015-03-12 09:53:43
阅读次数:
117
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1533On a grid map there are n little men and n houses. In each unit time, every little man can move one...
分类:
其他好文 时间:
2015-03-12 06:20:08
阅读次数:
151
UITextView控件属性:1.text: 设置textView中文本_textView.text = @"Now is the time for all good developers to come to serve their country.\n\nNow is the time for ...
分类:
其他好文 时间:
2015-03-12 00:48:55
阅读次数:
118
Date Picker控件:中文:日期/时间选取器UIDatePicker有一个实例方法setDate:animated,以编程的方式选择日期。UIDatePicker有四种模式(model): Time(...
分类:
其他好文 时间:
2015-03-12 00:44:23
阅读次数:
134
题目大意:
给你一个N个点,M条边的有向图G,每一条边有两个属性:cost,time。然后要你求出一个环T使得Σcost[u]/Σtime[v](u,v∈T)Σcost[u]/Σtime[v](u,v∈T)最大。
解题思路:
我们要求最大值,一个很直观的思路就是二分答案,然后那么题目就变为询问是否存在一个环T使得使得Σcost[u]/Σtime[v](u,v∈...
分类:
其他好文 时间:
2015-03-11 23:30:08
阅读次数:
223