CodeJam Preperation 2013 - .in File reader for JAVA

codejam에 대한 이미지 검색결과 
To be a first applicant at CodeJam 2013, being curious if I could understand the easiest one ever, I made up a small file reader class for '.in' and main class to implement for your solution. You may find out the source HERE.

RULE TO USE.

  1. There's no guarantee as 'Error Free' or no obligation for 'updating or fixing bugs' at all.
  2. Free to use.
  3. No license or something.
  4. If not satisfied and finding a better one, please let me know :)
    Before that, I will use this.

 HOW TO MAKE

1.  Java beginner new application - Hello Tutorial
2. Googling a file read source on web - mwultong Blog
3. Amending the source to return an ArrayList<String> to use in a CodeJam solution class.


 TEST RESULT

The '.in' file for this test is from Problem A. Minimum Scalar Product (Small)

Read complete
This test prints only 10 lines
1000
3
1 -5 3
-2 1 4
5
5 4 3 1 2
1 1 0 1 0
7
677 463 -569 516 401 -998 882
890 588 959 909 948 -617 -655


ADDED - 2013/3/2 1:57

The Provided InFileReader Class is edited to include a method to make '.output' file :)
The amended file is HERE.

댓글

가장 많이 본 글