Shisuko's blog

By Shisuko, history, 4 years ago, In English

Suppose I hypothetically had a problem which required, say, the periodic table of elements, or the Collins' dictionary for valid Scrabble words. Perhaps, "Given a word, determine if it can be expressed as a combination of symbols of elements," or "Given a word, determine the number of valid English words that can be formed using its letters"

So, there is still a standard input to be read. But it's certainly unreasonable to ask contestants to hard code the resources. Is it possible for me to set up the problem with these files, so that the contestants' submissions can read them using ifstream or FileReader or something?

Thanks in advance!

*EDIT: There is no edit. This is a shameless bump.

  • Vote: I like it
  • +62
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I'm afraid this can't be done. Maybe that's because of sandboxing limitations, maybe the UI just doesn't have the option but either way I haven't seen a problem/solution utilizing this on Codeforces. I'm afraid you'll have to hard-code the resources.

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

    Darn, that's not too surprising, but still somewhat disappointing to hear. I hope this functionality gets added in the future, but it is admittedly niche.

    Anyway, thanks so much for the response! It makes me a little more confident that I'm not just stupid and missed something obvious :P