CodeJam Preperation 2013 - .in File reader for JAVA
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.
- There's no guarantee as 'Error Free' or no obligation for 'updating or fixing bugs' at all.
- Free to use.
- No license or something.
- 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 Tutorial2. 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.
댓글
댓글 쓰기