| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
这里用不着sleep吧……In Reply To:为什么Java的程序 Thread.sleep(1000)可以 482ms AC 但是 sleep(2000) 就成了 Runtime Error? Posted by:leaving at 2005-12-20 19:57:12 > import java.io.*;
> import java.util.*;
> public class Main
> {
> public static void main(String args[]) throws Exception
> {
> Scanner cin=new Scanner(System.in);
> int a=cin.nextInt(),b=cin.nextInt();
> Thread.sleep(1000);
> System.out.println(a+b);
> }
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator