[NKU]sweet @ Google && TopCoder && CodeForces

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  33 Posts :: 1 Stories :: 15 Comments :: 0 Trackbacks
 1 import java.util.*;
 2 import java.io.*;
 3 import java.math.*;
 4 
 5 
 6 class Main {
 7     public static void main(String args[]) throws IOException {
 8         new Prob().solve();
 9     }
10 }
11 
12 class Prob {
13     void solve() throws IOException {
14         MyReader in = new MyReader();
15         //.
16     }
17     void debug(Objectx) {
18         System.out.println(Arrays.deepToString(x));
19     }
20 }
21 
22 class MyReader {
23     BufferedReader br = new BufferedReader (
24         new InputStreamReader (System.in));
25     StringTokenizer in;
26     String next() throws IOException {
27         while (in == null || !in.hasMoreTokens()) {
28             in = new StringTokenizer(br.readLine());
29         }
30         return in.nextToken();
31     }
32     int nextInt() throws IOException {
33         return Integer.parseInt(next());
34     }
35 }
posted on 2011-02-23 14:32 sweetsc 阅读(422) 评论(3)  编辑  收藏 所属分类: ACM/ICPC学习心得

Feedback

# re: 贴个裸模板……求引玉…… 2011-10-04 08:56 Caiych
- -第27行换成 while比较好吧。。。被你这模板坑了一次。。。  回复  更多评论
  

# re: 贴个裸模板……求引玉……[未登录] 2011-10-04 12:44 sweet
@Caiych
=_= 数据有空行?……  回复  更多评论
  

# re: 贴个裸模板……求引玉…… 2011-10-05 17:15 Caiych
@sweet
可能是。。。总之是被坑了。。。  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: