Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这里用不着sleep吧……

Posted by frkstyc at 2005-12-20 20:04:12
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator