【思路】:模拟。注意一个是在兔子休息的时间乌龟可能到达了。刚开始没考虑WA80%。
【AC代码】:
#include
#include
#include
#include
#include
using namespace std;
int main()
{
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", st...
分类:
其他好文 时间:
2015-03-19 16:30:13
阅读次数:
223
Description: My TFS(Team Foundation Server) is connecting to source code server, however, the code in server can NOT be checked-out (so you can NOT se...
分类:
Web程序 时间:
2015-03-19 16:17:06
阅读次数:
132
https://leetcode.com/problems/combinations/Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk=...
分类:
其他好文 时间:
2015-03-19 14:36:28
阅读次数:
115
class Meal{ public Meal() { System.out.println("Meal()--构造啦!"); }}class Bread{ public Bread() { System.out.println("Bread...
分类:
编程语言 时间:
2015-03-19 13:09:43
阅读次数:
215
在使用.net中注册组件,有三种方式:1.手动注册: win9x/NT/2000系统提供一个用于注册进程内组件的实用工具RegSvr32.exe,如regsvr32 c:\test.dll;在.NET下面,注册.NET组件就需要regasm命令了,如C:\>regasm out ClassLibra...
分类:
Web程序 时间:
2015-03-19 12:58:37
阅读次数:
143
There couple of edge cases need to remember:1. The result, absolute value of dividend and divisor. Otherwise, when the record goes out of boundary, th...
分类:
其他好文 时间:
2015-03-19 08:50:24
阅读次数:
125
transition主要包含四个属性值:执行变换的属性:transition-property,
变换延续的时间:transition-duration,
在延续时间段,变换的速率变化transition-timing-function,
变换延迟时间transition-delay也可以酱紫哦:transition:background0.5sease-in,color0.3sease-out;取值..
分类:
其他好文 时间:
2015-03-19 06:41:49
阅读次数:
129
Two notes:1. I dont know whether C++ has a good split function for STL as the JAVA. Need to figure it out.2. At the beginning, I tried to set tmp1 = t...
分类:
其他好文 时间:
2015-03-19 06:17:36
阅读次数:
130
【思路】:采用atoi转换长度,两边只和大于第三边,两边之差小于第三边。
【AC代码】:
#include
#include
#include
#include
using namespace std;
#define MAX 100+10
int main()
{
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w...
分类:
其他好文 时间:
2015-03-19 00:55:25
阅读次数:
139
1) 在公司一直使用固定的eclipse IDE版本3.3 确实太out了。eclipse官方网址:http://download.eclipse.org 奇怪的是eclipse 发布的版本顺序是跳跃的 。2) 在百度找:springsource tool suite eclipse ,或者http...
分类:
编程语言 时间:
2015-03-19 00:41:51
阅读次数:
219