Have you looked at your output file? Does it look correct? Sent from my iPad
> On 11 Apr 2014, at 11:25, ratikanta pal <[email protected]> wrote: > > public static void main(String[] args) { > long startTime = System.currentTimeMillis(); > Reader reader; > String inp[] = null; > StringBuilder builder = new StringBuilder(); > int temp = 0; > try { > reader = new FileReader( > "test.in"); > BufferedReader bufReader = new BufferedReader(reader); > inp = new String[Integer.parseInt(new > String(bufReader.readLine()))+1]; > while ((inp[temp++]=bufReader.readLine()) != null) { > } > File file = new File( > "test.out"); > FileWriter writer = new FileWriter(file); > char arrTemp[]=null; > for (int i = 0; i < inp.length; i++) { > if(inp[i] != null ) > { > arrTemp = inp[i].toCharArray(); > } > else > break; > builder.append("Case #" + (i + 1) + ": " + builder); > for (int j = 0; j < arrTemp.length; j++) { > builder.append(getReplacement(arrTemp[j])); > } > writer.write(builder.toString() + "\n"); > builder = new StringBuilder(); > } > writer.close(); > } catch (FileNotFoundException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } catch (IOException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > } > > Hi.This is my main program.I am not able get it why its rejecting while > submitting in code jam. > > This error shows: > > Submission for input A-small Rejected: Your output file contains 0 test cases > instead of the expected 30. > You can learn more about rejections like this in our FAQ > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/e83018f6-6058-4e67-8329-43422b4e107e%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/99AF06FB-58E8-4F4B-B2FD-E5DBE27B58A5%40pebody.org. For more options, visit https://groups.google.com/d/optout.
