C. Appleman and a Sheet of Papertime limit per test2 secondsmemory limit per test256 megabytesAppleman has a very big sheet of paper. This sheet has a...
分类:
移动开发 时间:
2014-09-05 14:19:31
阅读次数:
368
package com.rainfool.quicksort;public class Test2 { public static void main(String[] args) { Integer[] a = { 2, 8, 7, 1, 3, 5, 6, 4 }; ...
分类:
其他好文 时间:
2014-09-03 11:10:16
阅读次数:
220
import java.util.Scanner;
public class Test2 {
/*
* 自由落体位移公式:s = 1/2 * g * t2
s --- 位移(m)
t --- 时间(s)
g --- 重力加速度(9.8m/s)
根据输入的时间,求出位移多少米
*/
public static void main(Stri...
分类:
编程语言 时间:
2014-09-02 21:27:15
阅读次数:
321
#重要说明文件及目录路径:要使用反斜杠'\',不要使用正斜杠'/' 如:del d:\test2\file\my.txt文件及目录路径:若存在空格,应使用双引号将路径引起来 如:del "d:\program files\file\my.txt"文件及目录名中不能包含下列任何字符:\ / : * ....
只要是玩过C或者C++的童鞋们,对printf肯定是再熟悉不过了。下面有几个方法,你知道每个方法输出是什么吗? void Test1(){ printf("hello %d");}void Test2(){ printf("hello %s");}void Test3(){ int a = 0; p...
分类:
其他好文 时间:
2014-09-01 21:07:53
阅读次数:
347
---恢复内容开始--- 偶尔翻到了关于Java对象初始化顺序的面试题,重新复习了一下,顺便做笔记。1.父类子类构造函数执行的先后顺序public class Test2 { public int Field; //step 1 public Test2(){ Fi...
分类:
编程语言 时间:
2014-08-28 11:21:59
阅读次数:
272
CF462DCodeforces Round #263 (Div. 2) DCodeforces Round #263 (Div. 1) BB. Appleman and Treetime limit per test2 secondsmemory limit per test256 megabyt...
分类:
移动开发 时间:
2014-08-27 20:08:38
阅读次数:
238
C. Appleman and Toastmantime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman and Toastman pl...
分类:
移动开发 时间:
2014-08-27 10:36:37
阅读次数:
241
two模拟大意:给你一个 N 位二进制数,有四种操作:加1、减1、乘2、整除2。给定一个操作序列,求最终结果。N <= 5*10^6。数据保证不会在最高位上进行进位或退位操作。初步解法:由于题目中的特殊限制(操作不影响最高位),我们可以直接用一个 char 数组和一个尾指针来进行操作。「加1」操作即...
分类:
其他好文 时间:
2014-08-19 22:19:15
阅读次数:
248
一、变量声明:1.var test = "hi";2.var test1 = "hi", test2 = "hello";3.var test = "hi", age = 25;4.var test;5.var test = "hi";alert(test);test = 55;alert(test...
分类:
编程语言 时间:
2014-08-15 19:32:29
阅读次数:
253