티스토리 뷰
How to submit in Java (now 1.6)
Programming-Challenges.com
We have received several complains from people using this site about troubles submitting in Java. Please, use the following skeleton to make your submissions work.
/* * Main.java * java program model for www.programming-challenges.com */ import java.io.*; import java.util.*; class Main implements Runnable{ static String ReadLn(int maxLength){ // utility function to read from stdin, // Provided by Programming-challenges, edit for style only byte line[] = new byte [maxLength]; int length = 0; int input = -1; try{ while (length < maxLength){//Read untill maxlength input = System.in.read(); if ((input < 0) || (input == '\n')) break; //or untill end of line ninput line [length++] += input; } if ((input < 0) && (length == 0)) return null; // eof return new String(line, 0, length); }catch (IOException e){ return null; } } public static void main(String args[]) // entry point from OS { Main myWork = new Main(); // Construct the bootloader myWork.run(); // execute } public void run() { new myStuff().run(); } } class myStuff implements Runnable{ public void run(){ // Your program here } // You can insert more classes here if you want. }
2010.02.16.
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Kahlil Gibran
- 율곡
- java
- 존재
- 점검항목
- 물고기
- Data Science
- ajax
- 수평적 사고
- Critical Thinking
- 알무스타파
- 퇴계
- Data Mart
- xe
- data analysis
- Systems Thinking
- 컴퓨팅 사고
- 예언자
- 어약연비
- Edit Tree Node
- JTree
- 이기일원론
- 사랑
- 후흑학
- 소유
- Lateral thinking
- Multiple Path
- WMV
- wav
- Computational Thinking
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함