Prateek_Jakhar's blog

By Prateek_Jakhar, history, 5 years ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

In that contest, it is stated that your program should use files for i/o, not stdin/stdout. So you should probably do that.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I tried uploading the txt file of same code but still got same error

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      It means you're supposed to read input from a file and write output to a file.

      So for example if you look at 80557361, you'll see that they are using FileReader/FileWriter for their i/o. I'm a C++ user so I don't really know Java, but it shouldn't be too hard to use FileReader/FileWriter with FastReader and PrintWriter.