练习4-4原文Exercise 4.4. Recall the definitions of the special forms and and or from chapter 1: ● and: The expressions are evaluated from left to right. If any expression evaluates to false, false is...
分类:
其他好文 时间:
2015-03-31 14:45:56
阅读次数:
156
1024. Magic Island
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
There are N cities and N-1 roads in Magic-Island. You can go from one city to any other. One road only ...
分类:
其他好文 时间:
2015-03-31 09:03:59
阅读次数:
173
https://leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for'.'and'*'.'.' Matches any single chara...
分类:
其他好文 时间:
2015-03-30 22:52:12
阅读次数:
220
/*Base64 - 1.1.0Copyright (c) 2006 Steve WebsterPermission is hereby granted, free of charge, to any person obtaining a copy ofthis software and assoc...
分类:
其他好文 时间:
2015-03-30 22:29:11
阅读次数:
161
链接:click here~~
题意:
Description
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any...
分类:
其他好文 时间:
2015-03-30 13:18:59
阅读次数:
167
1.Scala的类层级Scala里类的顶端是Any所有的类都继承Any类,Any包括以下几个通用方法:final def ==(that: Any): Boolean final def !=(that: Any): Boolean def equals(that: Any): Boolean de...
10392. Meet and Greet
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
As is commonly known, cows are very socially polite creatures: any time two cows meet after bei...
分类:
其他好文 时间:
2015-03-30 09:18:28
阅读次数:
162
You may know that an unbounded wildcard Set can hold elements of any type, and a raw type Set can also hold elements of any type. What is the differen...
分类:
其他好文 时间:
2015-03-29 23:21:16
阅读次数:
193
http://acm.hdu.edu.cn/showproblem.php?pid=4400
Problem Description
Terrorists put some mines in a crowded square recently. The police evacuate all people in time before any mine explodes. Now ...
分类:
其他好文 时间:
2015-03-29 12:17:37
阅读次数:
151
练习3-66原文Exercise 3.66. Examine the stream (pairs integers integers). Can you make any general comments about the order in which the pairs are placed into the stream? For example, about how many pairs...
分类:
其他好文 时间:
2015-03-29 10:55:03
阅读次数:
110