??
Problem Description
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars...
分类:
其他好文 时间:
2014-08-07 13:17:10
阅读次数:
247
Description
On a number axis directed from the left rightwards, n marbles with coordinates
x1,?x2,?...,?xn are situated. Let's assume that the sizes of the marbles are infinitely small, that
is ...
分类:
其他好文 时间:
2014-08-06 19:11:42
阅读次数:
310
Brackets Sequence
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 25087
Accepted: 7069
Special Judge
Description
Let us define a regular brackets seq...
分类:
其他好文 时间:
2014-08-06 10:29:51
阅读次数:
352
Description
Let x and y be two strings over some finite alphabet A. We would like to transform
x into y allowing only operations given below:
Deletion: a letter in x is missing in y at a corr...
分类:
其他好文 时间:
2014-08-05 19:32:50
阅读次数:
247
String
Problem Description
You hava a non-empty string which consists of lowercase English letters and may contain at most one '?'. Let's choose non-empty substring G from S (it can be G = S...
分类:
其他好文 时间:
2014-08-05 19:29:50
阅读次数:
240
附属脚本是访问对象,集合或序列的快捷方式struct STest{ let constValue:Int subscript(count:Int)->Int{ return count*constValue }}let obj = STest(constValue:3...
分类:
其他好文 时间:
2014-08-05 18:12:19
阅读次数:
204
简单值:
1.let声明常量,var声明变量(声明的同时赋值,编译器会自动推断出类型)
var myVariable = 42
myVariable 50
let myConstant = 42
let implicitInteger = 70
let implicitDouble = 70.0
let explicitDouble:Double = 70
声明类型时在“量...
分类:
其他好文 时间:
2014-08-05 15:53:29
阅读次数:
197
本文是一篇swift的基础教材,讲解了swift语言的变量,数据类型和循环.准备学swift的同学可以参考学习下.1 常量变量 var myVariable = 42 //变量 myVariable = 50 let myConstant = 42 //常量 2 显示指明变量类型 let exp.....
分类:
其他好文 时间:
2014-08-05 13:37:19
阅读次数:
232
vim 文件检测删除文件,使得F5编译的时候不重复执行上次产生的程序func! CompileRunGpp()exec "w"let temp = "/home/darkdream/problem/exe/ " "后面留一个空格以便替换let outfilename=subst...
分类:
其他好文 时间:
2014-08-01 22:48:32
阅读次数:
305
Dividing Stones
Time limit:
7s
Source limit:
50000B
Memory limit:
256MB
There are N stones, which can be divided into some piles arbitrarily. Let the v...
分类:
其他好文 时间:
2014-08-01 19:42:12
阅读次数:
261