×

# How to submit java code?

 0 I am new to codechef. And i am doing chef and stone problem. I have written the code. When i submit it, it shows run time error. My code is right, i have run it on various test cases. I think i am taking input in wrong way. Can anyone tell me how to take input like if a file is needed or what? so that code can execute here correctly? asked 03 Jan '15, 16:12 1●1●1 accept rate: 0% 937●2●9

 0 The problem you are doing is in a running contest, so for that we cant see your submission. For now you can try doing a question in the practise section and that can help you how to take input in JAVA, because the method is same for all the problems. I would suggest you to do the TEST problem. Hope it Helps. Happy Coding!!! answered 03 Jan '15, 16:23 4★the65bit 1.1k●10●13●28 accept rate: 13%
 0 try this piece of code: for original refer : http://codeforces.com/contest/497/submission/9164069 the code template belongs to Petr Mitrichev-> his blog there is a sample solution for TEST is at solution_TEST_Java I recommend to read the template from Petr's profile, It should definitely help. And remember that java class that is named "Main" and is public will only run. If not found will throw compile error. to read data like 1 3 10 3 4 5 4 4 5 you can use the above template. answered 03 Jan '15, 19:07 5★pikaynu 26●3 accept rate: 33%
 0 May be array index error,divide by zero,wrong input method, answered 04 Jan '15, 00:29 2★ambika93 81●2●8 accept rate: 0%
 0 I didn't get it. What is wrong here. i tried to attach the whole source file. its not even working. i mean it still saying ERROR but my Code is perfectly Alright. So how can i submit my java code? answered 29 Dec '15, 20:37 1 accept rate: 0%
 0 Following this post. Faced this problem. Spark Interact 11 Barclay Street Marrickville NSW 2204 Phone: 1300 799 858 answered 31 Dec '15, 09:05 1 accept rate: 0%
 0 check if u r exceeding the time limit answered 22 Jan '16, 01:31 1 accept rate: 0%
 0 I have the same problem. answered 20 Dec '16, 13:42 1 accept rate: 0%
 0 I am trying to submit my java code, but after I click submit, the page reloads and an empty code editor shows up, as if I never wrote any code(or uploaded any java file). Tried both ways - uploading src code file - copying my src code to the codechef editor. Just doesn't seem to work. Any help? Thank you. answered 11 Mar '17, 01:12 1 accept rate: 0%
 0 I need help, im doing java.io.BufferedReader reader = new java.io.BufferedReader (new InputStreamReader(System.in)); then reader.readLine()` but its returning null. Sorry for posting an answer because Im not allowed to ask questions even though im a beginner. link This answer is marked "community wiki". answered 09 Nov '17, 04:21 1 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×2,397
×1,142
×349
×155

question asked: 03 Jan '15, 16:12

question was seen: 9,508 times

last updated: 09 Nov '17, 04:21