riadwaw's blog

By riadwaw, 8 years ago, translation, In English

The Qualification Round starts on November 21, 2013 at 4:00 PM PT and will last 72 hours.

What are the prizes?

  • 1st Place: $10,000 USD
  • 2nd Place: $2,000 USD
  • 3rd Place: $1,000 USD
  • 4th-25th Place: $100 USD

Who gets T-shirts?

The top 100 finishers from Round 2 will get t-shirts.

Registration
FAQ

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

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

When the contest starts how can I see the problems??? Where can I submit my codes??? And it's problems are programming problems(like http://codeforces.com/problemset) or something else???

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    They will surely announce how to see problems and submit solutions when the contest starts. The problems will be algorithm programming problems.

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

Does the solution have to read/write from standard input/output or from file?

»
8 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

Maybe someone will share how he/she bypasses national firewall. I cant access facebook.com because of national firewall. Tried proxies from proxynova.com, failed. :(

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Try psiphon3 ,it's very effective with me

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +6 Vote: I do not like it

    The easiest way is to use Tor. Alternative would be some free foreign VPN, but it is easily discoverable by DPI and not as convenient to use as Tor (Tor Browser Bundle works out of box without any special configuration).

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

Sorry , but I'm not familiar with the system of getting the output , how can I get my output into a file after reading the input from a file? Thanks

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

    use standard input/output routine , then
    add this line in beginning of main()
    "freopen( "out.txt" , "w" , stdout );"
    and include "cstdio"

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    You can use < and > to redirect input and output on command line (both on linux and windows).

    For example: - "program.exe < input.txt" ("./program < input.txt" on linux) will run program.exe with input coming from the file "input.txt" (as if you were typing the input that is written on this file) - "program.exe > output.txt" ("./program > output.txt" on linux) will redirect output to file "output.txt" (and create the file if it doesn't exist). Which means that anything that would be printed to the prompt will be written to the file instead.

    So, suppose you get the input file from hacker cup ("problem_x_input.txt"), all you need to do is: "program.exe < problem_x_input.txt > output.txt" and you will both read from the input file and output to the other file. Then just upload it :D

    I find it way easier to do this than to open a file on my code, etc. (Also, this is neat to know for every other contest in general).

    • »
      »
      »
      8 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      if you are using an IDE, this could be useful:

      BufferedReader br = new BufferedReader( new InputStreamReader( new FileInputStream("in.txt") ) );
      PrintWriter out = new PrintWriter( new BufferedOutputStream( new FileOutputStream("out.txt") ) );
      

      and dont forget to close the streams:

      br.close();
      out.close();
      
      • »
        »
        »
        »
        8 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Closing happens automatically when the program terminates.

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

      thnx man ,really new and helpfull