以前写过一段C#,苦于编译才能用。这样的小工具最好是用脚本语言来编写,易于执行,也易于修改。js 代码 convert.js--------------------------------------------------String.prototype.trim=function(){ ret....
分类:
数据库 时间:
2014-12-27 10:04:30
阅读次数:
191
统计国家代号出现的次数,如果去的和来的相等就输出YES即可。
import java.util.*;
public class Main10763 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(true) {
int n = scan.nextIn...
分类:
其他好文 时间:
2014-12-27 08:59:41
阅读次数:
120
一、SimpleDateFormat函数例子:SimpleDateFormat format=new SimpleDateFormat("MM-dd HH:mm:ss E");String time=format.format(new Date());System.out.println("当前时间...
分类:
编程语言 时间:
2014-12-27 06:41:06
阅读次数:
158
从java5开始提供了变长参数,可以把变长参数当作数据使用可变长参数方法的定义使用...表示可变长参数,例如print(String... args){ ...}在具有可变长参数的方法中可以把参数当成数组使用,例如可以循环输出所有的参数值。print(String... args){ for(S.....
分类:
编程语言 时间:
2014-12-27 01:31:37
阅读次数:
230
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".代码:oj在线测试通过Runtime:172 ms 1...
分类:
编程语言 时间:
2014-12-27 01:26:47
阅读次数:
232
题目:(DP,BackTracking, Greedy,String)Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequ...
分类:
其他好文 时间:
2014-12-27 00:13:18
阅读次数:
292
接下来说下C#中的泛型,熟练地使用泛型能提高代码的重用性,使用我们代码瞬间就高大上了,当然只有一点点,真的只有一点点,因为后面要学习和掌握的知识还有很多。先来看下一个使用Dictionary的例子。 1 static void Main(string[] args) 2 { 3 Dicti...
1. dirname(PHP 3, PHP 4, PHP 5)dirname--返回路径中的目录部分说明stringdirname( string path ) 给出一个包含有指向一个文件的全路径的字符串,本函数返回去掉文件名后的目录名。 在 Windows 中,斜线(/)和反斜线(\)都可以用作目...
分类:
Web程序 时间:
2014-12-27 00:11:08
阅读次数:
164
最近做的一个登录对话框,在获取数据的时候出现错误,运行的时候自动死机。出错语句:EditText PasswordEidtText = (EditText)findViewById(R.id.UserPasswordEidtText); // 发送文本 String mes...
分类:
移动开发 时间:
2014-12-27 00:07:21
阅读次数:
254
没看清题号,TimeLimit。啊。 直接计算次数即可。
代码 :
import java.util.*;
public class Main1954 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int t = scan.nextInt();
while(...
分类:
其他好文 时间:
2014-12-26 23:05:23
阅读次数:
487