2659: [Beijing wc2012]算不出的算式Time Limit:3 SecMemory Limit:128 MBSubmit:757Solved:425[Submit][Status]Description算不出的算式背景: 曾经有一个老掉牙的游戏放在我面前,我没有珍惜。直到这个游戏停...
分类:
其他好文 时间:
2015-01-02 23:36:35
阅读次数:
164
Given an integer n, return the number of trailing zeroes in n!.
Note: Your solution should be in logarithmic time complexity.
解析:
只有2和5相乘才会出现0,其中整十也可以看做是2和5相乘的结果,所以,可以在n之前看看有多少个2以及多少个5就行了,又发现2的数量...
分类:
其他好文 时间:
2015-01-02 22:28:57
阅读次数:
213
//根据时间删除- (void)deleteDataWithTime:(NSString *)time at:(NSString *)tableName{ //NSString *deleteSql = @"delete from LBBMesTable where Id =?"; NSStri.....
分类:
数据库 时间:
2015-01-02 19:55:38
阅读次数:
215
一、数学库 --获取系统时间
print(os.time())
--调用math.sin函数
print(math.sin(30))
--[[将角度转换成弧度
math.deg(x)
--将弧度转换成角度
math.rad(x)
]]
--[[指数函数、对数函数
math.exp(x)
math.log(x...
分类:
其他好文 时间:
2015-01-02 18:51:21
阅读次数:
154
# coding: UTF-8import sys, os, time, httplibimport relist_http=[] #http数组def open_httptxt(): #打开TXT文本写入数组 try: passlist = [] list_passlist=[] xxx = fi...
分类:
编程语言 时间:
2015-01-02 18:43:27
阅读次数:
278
迷宫问题
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8695
Accepted: 5125
Description
定义一个二维数组:
int maze[5][5] = {
0, 1, 0, 0, 0,
0, 1, 0, 1, 0,
0,...
分类:
其他好文 时间:
2015-01-02 17:37:38
阅读次数:
206
Where's Waldorf?
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu
Submit Status
Description
Where's Waldorf?
Given a m by n grid of lett...
分类:
其他好文 时间:
2015-01-02 17:36:45
阅读次数:
179
Oil Deposits
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 13689 Accepted Submission(s): 7871
Problem Description
The GeoSurvComp ...
分类:
其他好文 时间:
2015-01-02 17:36:24
阅读次数:
179
Dungeon Master
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 17264
Accepted: 6722
Description
You are trapped in a 3D dungeon and need to find the quickest...
分类:
其他好文 时间:
2015-01-02 17:35:45
阅读次数:
197
Catch That Cow
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 49503
Accepted: 15506
Description
Farmer John has been informed of the location of a fugitiv...
分类:
其他好文 时间:
2015-01-02 17:35:10
阅读次数:
176