### LoneFox's blog

By LoneFox, history, 2 years ago,

The Qualification Round of the 2020 Facebook Hacker Cup is less than 48 hours away!

The round will begin on July 24th, 2020 at 10am PDT and will last for 72 hours (3 days). The contest can be found on Hacker Cup's new competition site.

Everyone who solves at least one problem correctly will advance to Round 1, which will take place on August 15th. Please note that all submission judgments will only be revealed after the round ends. More details about rules and other information can be found in the FAQ.

Registration will remain open on the contest page until the end of the Qualification Round. Once you've registered, you may wish to confirm that the information in your competition profile is up to date. Starting this year, you may also choose a Display Handle for yourself there, to be displayed alongside your real name on scoreboards.

Look out for an upcoming announcement regarding this season's prizes as well!

We wish you the best of luck, and hope that you enjoy the contest!

Update 1: Facebook post announcing greatly increased cash prizes for 2020 can be found here, with more details available in the FAQ!

Update 2: The round has ended, thank you for participating! The scoreboard can be found here, and the solutions here.

• +230

 » 2 years ago, # |   +3 Wait, There's no partial verdict? Like pretests passed?
•  » » 2 years ago, # ^ |   +28 There aren't partial marks nor an exact equivalent to Codeforces' pretests. However, starting this year, there is a process of validating your solution before making an official submission, which is like a cross between sample data and pretests. There are more details in the FAQ, and you'll get to try it out soon during the qualification round.
 » 2 years ago, # |   +18 Excuse me, but can people below 18 participate in the Qualification Round?
•  » » 2 years ago, # ^ | ← Rev. 2 →   +47 Yup! You need to be at least 13 to have a Facebook account, so 13 is the age requirement. Due to legal issues around travel (not this year) and taxes (every year), you do need to be at least 18 years old to participate in the Final Round.
•  » » » 2 years ago, # ^ |   0 Thanks!
•  » » 2 years ago, # ^ |   +10 Yes,they can. :)
 » 2 years ago, # |   +86 Time to create facebook account
 » 2 years ago, # |   0 Do we still have a 6 minute window between downloading test case then submitting our program?
•  » » 2 years ago, # ^ |   +8 Yes. To know more, just visit their facebook page, and click on the FAQ!
•  » » 2 years ago, # ^ |   +13 You can make a new gmail account and use it to make a new Facebook account to participate with
•  » » » 2 years ago, # ^ | ← Rev. 3 →   0 Thanks. Actually I had already tried this, but Facebook somehow knew about the new alternate account and I received the Disabled account message again.
•  » » » » 2 years ago, # ^ |   0 It will be removed once you verify your phone-number
•  » » » » » 2 years ago, # ^ |   0 If I tried to verify my original phone number, Facebook will say that my number has already been used to verify another Facebook account. (and that is my real account which got disabled)
•  » » » » » » 2 years ago, # ^ |   0 alwyn, please email hackercup@fb.com with your Facebook account name, and we can look into your case and hopefully have your account be re-activated. Thanks!
•  » » 2 years ago, # ^ | ← Rev. 3 →   0 I am having same problem, but don't think I ever made an account before. Tried with two different emails. Now three. Also cleared cache and stuff.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   +3 I tried signing up for a new account on my phone, using my mom's phone number and fake birthdate, and it works (I didn't use a fake name though). After signing up, I logged in on my laptop with the new account and everything seems to be working.Before trying this method, I have tried the following methods and all of them failed: Signing up using real name and birthdate, but with different email. This didn't work. Maybe because the name and birthdate are exactly the same with my disabled account's name and birthdate; and the email that I used to sign up, contains my name on it. (eg: fullname@gmail.com and fullname1998@gmail.com) Signing up using my real name, real birthdate, and my dad's phone number. Still didn't work. Fake name, fake birthdate, and my sister's phone number. This initially works, but after successfully signing in to Facebook, I changed the name and birthdate to my real name and birthdate. And I add a new email to the account, but this time using my university email. But around several hours later, the new account suddenly got disabled again. Edit : I also cleared cache and saved passwords before trying each of these steps
•  » » » 2 years ago, # ^ |   +3 SuperJ6, please email hackercup@fb.com with your Facebook account name, and we can look into your case and hopefully have your account be re-activated. Thanks!
•  » » 2 years ago, # ^ |   +4 I think this facebook way of telling you "Ohhh so now you need me. Where were you when I needed you!". Facebook is showing ego.
 » 2 years ago, # |   +3 I would be really grateful if someone can explain clearly, the submission process in facebook hackercup? I am unable to understand it from the internet or the FAQ
•  » » 2 years ago, # ^ |   0 Just try it with the archived problems. In C++ you are changing from reading and writing from standard input/output, to reading and writing from/to a text file. Then you submit the text file.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 I have solved one of the problems and also downloaded the input test file . But what to do after that?
•  » » » » 2 years ago, # ^ |   +4 Run your program locally (on your laptop/pc) with the input from the input file, save the output of your program to a file, and upload the output file.
•  » » » » » 2 years ago, # ^ |   0 Thanks.After reading this, I added those lines, compiled and ran the program. Cmd doesn’t take input from me and neither terminates. Checked the output file and it is showing some random output for all test cases. Even though, input file had only about 1350 test cases , output file is showing much more than that. What could have gone wrong?
•  » » » » » » 2 years ago, # ^ |   0 Maybe your solution is wrong? Hard to tell from the distance. Post your solution on ideone or pastebin, and I'll take a quick look.
•  » » » » » » » 2 years ago, # ^ |   0 Here it is.
•  » » » » » » » » 2 years ago, # ^ | ← Rev. 4 →   +8 That's not how file I/O works. OK, it works — I confused it with some other function. Thanks for the correction, Jakube.Anyway, don't do file I/O at all. Just write a normal program as you would for Codeforces problems, and when executing just do ./a.out < name_of_input_file.txt > name_of_output_file.txtWorks on both Linux and Windows (replace ./a.out with ./a.exe) .
•  » » » » » » » » » 2 years ago, # ^ |   +8 Well, actually it can be done like that. I don't like it either, but it works.And on Windows it's probably a.exe instead of ./a.out.
•  » » » » » » » » » 2 years ago, # ^ |   +8 Thanks, edited.
•  » » » » » » » » » 2 years ago, # ^ |   +8 I just wrote a simple program without File IO, and uploaded that as source code. Will that work? Or should I use File I/O for other questions?
•  » » » » » » » » » 2 years ago, # ^ |   +8 Yes, for source code simple program will work. As long as your output file is correct, there should be no issue.
•  » » » » » » » » 2 years ago, # ^ | ← Rev. 2 →   +8 How are you running the program? What do you mean with random output?I just compiled the program, and ran it with the input file (1050 test cases), and it outputed 1050 results. Everything worked, and even submitting the output.txt worked.
•  » » » » » » » » » 2 years ago, # ^ | ← Rev. 2 →   +8 I figured the problem. I changed the file name from "leapfrog_ch__input.txt" to "input.txt". It worked and got accepted. But I don't know how that made a difference.
•  » » » » » » » » » 2 years ago, # ^ |   +8 I think your code gives wrong o/p in 3rd case in sample test case
•  » » » » » » » » » 2 years ago, # ^ |   +8 It gave correct on my mine and also got accepted. So, I don't know what you are talking about.
•  » » » » » » » » 2 years ago, # ^ |   +8 Same problem is happening with me what to do ?? even for running hackercup how to generate output file without problem..I am using Dev Cpp
•  » » » » » » » » » 2 years ago, # ^ |   +8 Copy those lines inside the main function from link I provided above in my comment if not already done. Download the input file and put it inside the folder where all your programs are saved. Compile and run. Your folder should have the output file with the output of your program. That's all I did and it worked in gvim. Should work for dev c++ also.
•  » » » » » 2 years ago, # ^ |   0 can you help i am getting Presentation Error while validating output file i have taken simple input and output simply by print(ans) in python
•  » » » » » » 2 years ago, # ^ |   +18 Did you add the text "Case #(test case number):" in your output?
•  » » » » » » » 2 years ago, # ^ | ← Rev. 2 →   0 i have tried after adding test case no it is giving (presentation error) then also ex. my 1st try :YY YY YY NY my second try: Test: #1 YY YY Test: #2 YY NY
•  » » » » » » » » 2 years ago, # ^ |   +8 The output should be exactly in this format: Case #1: YY YY Case #2: YY NY
•  » » » » » » 2 years ago, # ^ |   +8 Please observe the output format. It should be like this Case #1: YY YYshould be new line after ":"
•  » » » » » » » 2 years ago, # ^ |   +8 in clear words output must be in exact format as provided in sample test case on site. example:Case 1#: NN YY
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 I don't think it is necessary to read input from file and write output to file, we can simply paste input in input box of IDE and after running the program copy the output to another file.(Should I read input from STDIN or from a file? Should I write output to STDOUT or to a file?)
•  » » » » 2 years ago, # ^ |   0 That’s true, but my laptop sometimes crashes with large output or even just copying to the clipboard
•  » » » 2 years ago, # ^ |   0 I submitted with standard IO and it validated. Should I resubmit with reading and writing to files?
•  » » » » 2 years ago, # ^ |   +8 No you don't need to do that, you can read the input either from stdin or from file, it doesn't matter, they don't run your code, as given in the FAQ.
•  » » » » » 2 years ago, # ^ | ← Rev. 4 →   0 #ifndef ONLINE_JUDGE freopen("input.txt","r", stdin) ; freopen("output.txt","w", stdout) ; freopen("error.txt","w", stderr) ; #endif i use this in my cpp code, and it cause compilation error on some judges. Will this be a problem on hacker cup?
•  » » » » » » 2 years ago, # ^ |   0 No, it should not, as I said they only check the output text file, they don't run your code, just check it for plagiarism.
 » 2 years ago, # |   +5 Hope, there will be no karangreat234 in this round
•  » » 2 years ago, # ^ |   0 Lol
 » 2 years ago, # |   0 I keep updating the display handle but it always resets to nothing whenever I check back.
•  » » 2 years ago, # ^ |   0 Are you clicking the Save button below after entering your Display Handle? If so, is it possible that any error is showing up when you do, for example due to an invalid phone number or other field? Thanks!
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 Yes, my phone number is blank, do I have to put it in? My facebook account was registered through referral so it has no phone number.
•  » » » » 2 years ago, # ^ |   0 Leaving a blank phone number is fine.
•  » » » » » 2 years ago, # ^ |   0 But it won't let me click Save.
•  » » » » » 2 years ago, # ^ |   0 For the record, this has turned out to work after all.
 » 2 years ago, # |   +27 Oops looks like I missed the round.
•  » » 2 years ago, # ^ |   0 Not anymore, we've traveled back to the future of 2020 :) The post no longer mentions 2019, thanks!
•  » » » 2 years ago, # ^ |   -19 Can you tell me who is Benjamin Qi, as I can see he is the winner.
 » 2 years ago, # |   0 Is the system of checking solutions to codes similar to that at Topcoder in Facebook Hackercup?
•  » » 2 years ago, # ^ |   +3 You'll need to write code to solve similar sorts of problems, but differences include the fact that you'll need to write a full program capable of processing input/output and execute it yourself. Please see the FAQ for more details, and consider practicing on past Hacker Cup problems to get a sense of what the system is like.
 » 2 years ago, # |   0 I have a couple of questions: Does the time penalty of a round affect the qualification of the rounds other than the next? For example, does the ranking/penalty from round 1 affect qualification to round 3? Is it possible to get TLE?
•  » » 2 years ago, # ^ |   0 Each round is entirely independent. The only time limit is that, upon downloading the full grading input file, you must be able to run your code on it yourself and upload the resulting output file within 6 minutes.
 » 2 years ago, # | ← Rev. 3 →   0 
 » 2 years ago, # |   +30 Can I deactivate my account after I'm done with the contest?
•  » » 2 years ago, # ^ |   +101 Petr does it every year
•  » » » 2 years ago, # ^ |   -27 Maybe he isn't happy with his rating :D
 » 2 years ago, # |   +12 I don't get it what the hell just happened?? I downloaded the input.txt file for D1 and funny I wasn't able to read the input... Refer this screenshotDoes this mean I won't be able to submit solutions having input files of similar size using current lappy?? Tagging LoneFox
•  » » 2 years ago, # ^ | ← Rev. 2 →   +1 Does the file look OK in a different editor than Notepad? I saw somebody else with the same issue, but it was a file they had created and then opened in Notepad. When I viewed it, it was fine. I think there are some encoding settings in Notepad you can play with as well.
•  » » » 2 years ago, # ^ |   +11 I think there's a problem with the text file downloaded as I tried viewing the file on different editors and even systems ... but dint work out!! Most of them stopped working and so I am in a dilemma of whether to submit D2 or not?? It worked just as fine till C but again the dataset size was smaller for A, B and C
•  » » » » 2 years ago, # ^ |   +9 Please send us a clarification with the file and we can discuss further.
•  » » » » » 2 years ago, # ^ |   +11 Actually I tried uploading the file in clarification but showed memory limit exceeds 200 KB....
•  » » 2 years ago, # ^ | ← Rev. 2 →   0 I faced the same problem. The downloaded input file consisted of all those weird characters, and thus I couldn't run my program. Eventually my submission timer ran out and I can't submit anymore.
•  » » » 2 years ago, # ^ |   0 I also faced the same issue. Quite frustrating it was!
 » 2 years ago, # |   -45 In problem C , can there be multiple trees at same position ?
•  » » 2 years ago, # ^ |   +27 Read the problem more carefully.
 » 2 years ago, # |   0 What does wrong answer indicates in validation phase ?
•  » » 2 years ago, # ^ |   +36 It means your solution to the validation input was wrong.
•  » » » 2 years ago, # ^ |   0 Can it be because of error in format ?
•  » » » » 2 years ago, # ^ |   0 Nope. That yields presentation error.
 » 2 years ago, # |   +8 I have one serious doubt- Should the code I submitted also read a file and create a new output file if they will run my code on another testcase or just it should print output like Codeforces or Both or doesn't matter. Anyone please? Actually I have submitted the code that read a input file and create a new output file. Have I submitted it wrongly?
•  » » 2 years ago, # ^ |   0 Either is fine, as long as your submitted source code is what you used to generate your submitted output.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 What if I used a different filename for input.txt? For e.g. the official filename for the test-cases is input.txt but I take the input from, say, txt.in in my program.EDIT: Nevermind, I saw the FAQ, it seems this is fine.
 » 2 years ago, # |   +33 Look like you really need a fast enough network because the counter countdown while you downloading the testcase. I failed problem C because I couldn't download the whole testcase in 6 minutes, crazy contest.
•  » » 2 years ago, # ^ |   +2 That's unfair. Maybe Facebook should improve the way to submit the solution.
•  » » 2 years ago, # ^ |   +34 If you have any trouble during the contest, please send us a clarification and we can help. We do try to keep the input files as small as possible without sacrificing the integrity of the data.We hope to move to a format where we actually execute code for next year which will solve this problem once and for all.
•  » » » 2 years ago, # ^ |   0 Yes, please make it like other coding competitions.
•  » » » 2 years ago, # ^ |   -23 Thanks for your reply, I'll try to send a clarification later. And it's really a good news if the contest run like other platform in future.
•  » » » 2 years ago, # ^ |   +193 We hope to move to a format where we actually execute code for next year which will solve this problem once and for all. Noooo, FHC is the last big contest with this unusual format, which sometimes forces you to look for a bug quickly in that 6-minute frame because something crashed or it's too slow. Don't make every contest the same :(
•  » » » » 2 years ago, # ^ |   +125 +1, Google Code Jam lost a lot of its appeal to me once they changed the format to be like every other contest :(
•  » » » » 2 years ago, # ^ | ← Rev. 2 →   +37 Ah, these are both interesting opinions, thanks for the feedback! We'd be interested in hearing any other things that you like about the current format compared to a more "normal" approach.The current format does have some downsides such as limited data size a general concern around unfairness re: different hardware and internet stability time spent fiddling with files instead of coding
•  » » » » » 2 years ago, # ^ |   +93 I liked old Code Jam format because it allowed to have some fun.Or racing for the top of languages used leaderboard (hard-core players would deliberately fail Rounds 1A & 1B to get more languages in).Or just looking at what crazy languages did people use and their submissions.Or just solving the problem in two parts in two different languages if you really wanted it (say in the first part you wanted to use C++ STL, but for the second part you wanted to use Python long arithmetics).Or if you really need it, you can even use multi-threading to get just a bit more performance.The current format doesn't limit you in anything, it's basically just use your computer to solve this problem, in whatever way you want without limiting your tools in any way. When Code Jam used this format, it had this unique feeling for it, which it lost when it became exactly like the other contests. Which in my eyes, was a shame.The biggest downside to this format I see is Internet stability/speed. But that can easily be addressed by distributing tests in advance in a password-protected archive. When the you start the timer, you could just reveal the password. IPSC has been doing this for years.
•  » » » » » » 2 years ago, # ^ |   +21 As somebody who's solved some GCJ problems in non-standard ways, I definitely understand where you're coming from.
•  » » » » 2 years ago, # ^ |   +42 It's possible of course to combine code execution with the same "one-shot" approach. As a random idea, imagine getting full feedback (we tell you whether you got AC/WA/TLE/PE/RE), but if you don't get AC the first time, you have 6 minutes to try to get AC :)Open to suggestions!
•  » » » » » 2 years ago, # ^ |   0 This sounds great. Hope to see this format in next Hackercup.
•  » » » » » 2 years ago, # ^ |   -34 What would TLE mean here? Bc what if my solution is actually supposed to take approx 3 minutes (bc my mind is small and I can't come up w/ intended solution). Then how do I like avoid the TLE verdict. Also maybe some progress bar showing time left on cases would be good (if we're submitting to online instead of local). Finally, maybe don't include AC or WA. Only the other answers, bc well that's another added layer abt this contest -- we don't know if sol is correct till grading. Tagging Errichto, eduardische, and ffao from above thread for their much greater experience than mine.
•  » » » 2 years ago, # ^ |   0 Please do so. My computer got a blue screen when I tried to submit for Problem C (I was copying and pasting to stdin which I probably shouldn't have done). Nevertheless, I ended up missing the submission window which was a bit disappointing.
•  » » 2 years ago, # ^ |   +70 If I needed more than 6 minutes to download 30MB, not advancing in FHC wouldn't be on top of my life issues list
•  » » 2 years ago, # ^ |   0 Same thing happened with me too. Was really frustrated.
 » 2 years ago, # |   +60 B Edgar and his younger brother Alfred are alchemists in search of the legendary Philosopher's Stone via the Law of Equivalent Exchange Fullmetal Alchemist fans LMAO
•  » » 2 years ago, # ^ |   +16 Seeing that reference was nice :)
 » 2 years ago, # |   0 I have a question: I didn't add #include  in my source code submission for problem A because it is not necessary in my computer, will it be ok or it will be Compilation Error ?
•  » » 2 years ago, # ^ |   +1 We don't run your source code. It's used for plagiarism detection.
•  » » » 2 years ago, # ^ | ← Rev. 4 →   +10 If you don't run our code then what happens if instead of submitting code I submit something else like anything. wjomlex
•  » » » » 2 years ago, # ^ |   +55 Just because we don't necessarily run it doesn't mean we don't look at it.
•  » » » » » 2 years ago, # ^ | ← Rev. 2 →   -6 But how it can be done without running the code on test cases to check whether it is the valid code or not?
•  » » » » » » 2 years ago, # ^ |   0 They look at the code without running it as a cheating deterrent to try and make sure that you coded the solution on your own.
•  » » » » » » » 2 years ago, # ^ | ← Rev. 2 →   0 Ok, but how they know that this is the valid code for the problem without running it on the test cases of the problem?
•  » » » » » » » » 2 years ago, # ^ |   0 They trust that there are a strong number of test cases that will close to guarantee that your output must be valid, just like CodeForces, they just allow you to run the code yourself and self report. They also give each participant a subset of the test cases and enforce a 6 minute window to inhibit sharing of output.
 » 2 years ago, # |   0 Is TLE not possible in the qualification round (if I managed to submit the output and source file within 6 minutes timer) ?
•  » » 2 years ago, # ^ |   0 The problem description doesn't mention time limit at all.
•  » » 2 years ago, # ^ |   0 Nope, as we don't run your source code.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 Does that mean the final grading input file is all the testcases? There won't be any new hidden testcases?
•  » » » » 2 years ago, # ^ |   +21 Almost all of the cases. Everybody gets a slightly different subset of the full set.
 » 2 years ago, # |   0 do we need submit source code in text?
•  » » 2 years ago, # ^ |   0 yeah i also want clarity in that or we need to submit output of given input file in .txt format
 » 2 years ago, # |   0 in which extension we submit the output file,i have tried in .py extension but it gives invalid file based on the extension(.py)
•  » » 2 years ago, # ^ |   0 both code and output should be in plain text.
•  » » » 2 years ago, # ^ |   0 as seperate text files or in same text also in which order?
•  » » » » 2 years ago, # ^ | ← Rev. 2 →   0 for validation submit output and then for submit, submit output and code separately
 » 2 years ago, # |   0 Why do facebook keep 6 minutes window? How does it help?
•  » » 2 years ago, # ^ | ← Rev. 3 →   -134 exactly, hard work is important
•  » » 2 years ago, # ^ |   -9 I think it is for stopping bruteforce approaches. I mean if u consider the 72 hours window, you can easily have the time to run an O(N^2) solution which gives correct answer.
•  » » » 2 years ago, # ^ |   0 Everyone who solves at least one problem correctly will advance to Round 1Does that mean I will surely qualify if I solve only one problem? Is there any benefit of solving more than 1 problem other than improving rank in the leaderboard.
•  » » » » 2 years ago, # ^ |   0 There's no benefit of correctly solving more than one problem. U will qualify if u just solve 1 problem.
•  » » » » » 2 years ago, # ^ |   0 thanks
•  » » » » » 2 years ago, # ^ |   +6 There's always the benefit of personal growth and learning :)
•  » » » » » 2 years ago, # ^ |   +33 Given that you don't know whether the solution is correct before the end of the contest, I'd say there is a pretty big benefit. No one wants to miss FHC because of a silly mistake in the only problem you solved during qualification.
•  » » » » » » 2 years ago, # ^ |   0 Yeah, this is a huge benefit. :)
•  » » » » 2 years ago, # ^ |   0 Yeah, there is always benefit. You can see people are having problems in submitting within 6 minute window. Anybody will surely not want to face that problem in later important stages of contest.Its better you get used to the system in this stage.
 » 2 years ago, # |   0 i am getting presentation error when trying to upload my output.txt file
 » 2 years ago, # |   +19 I think there should be a change in way of submission.For C and D1 and validated my code, but couldn't submit in time, just because wasn't able to download the file. It's unfair. No motivation to try D2 and fail again.
 » 2 years ago, # |   +6 This really very frustrating I solved C and when I downloaded the large test file my computer froze and I was not able to submit in time and now I cannot submit, it really feels bad
•  » » 2 years ago, # ^ | ← Rev. 2 →   0 May be your code complexity is too high and it's not able to produce output for large text file within less time.
•  » » » 2 years ago, # ^ |   0 I didn't even get the chance to run my code , my PC froze while I was setting up the input files
•  » » » » 2 years ago, # ^ |   0 Same thing happned with me when i go to run my code on input.txt(Large file) my pc froze,it really sucks mentally..
 » 2 years ago, # |   0 shouldn't the submitting time be more than 6 minutes. I solved D1 but couldn't submit in time as it has taken more than 4 mins on my local machine.
•  » » 2 years ago, # ^ | ← Rev. 2 →   +53 If you can't submit in time, because your program is too slow, then you shouldn't receive any points. It's the same as on any other online judge, on which you would receive a TLE.Any problem (at least in the qualifying round) has a solution that runs in less than 10 seconds. Together with the overhead of downloading and uploading, you should be able to submit any problem with 5 minutes still on the clock. 6 minutes is really generous.
 » 2 years ago, # |   +13 I created a new FB account for Hackercup. But it keeps getting disabled. I uploaded my phone number to get my account activated 2 days ago. Today, my account got disabled again and it is asking me to upload my photo. Is this happening with anybody else? And is there no other solution than to create a new account everytime this happens?
•  » » 2 years ago, # ^ |   0 I also get the same issue.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 I think this is the issue.For people too lazy to click on the link, this is what that comment says : I believe FB wants only users that actively interact with the cashcow: marketing, or bring other users that will. Accounts created solely for the purpose of competing once a year, with no indication of engaging in regular social media activity (or even worse, with adblocks) don't fit there, so they're promptly autoblocked as "suspected bots". Getting people to give FB extra private info to sell is just a bonus.This is why FB keeps disabling new accounts with no activity.
•  » » » » 2 years ago, # ^ |   0 mayurmaga, please email hackercup@fb.com with your Facebook account name, and we can look into your case and hopefully have your account be re-activated. Thanks!
 » 2 years ago, # |   +6 Can we have different login-registration process for FB hackercup from next year onwards? Something independent of FB profile. I think lot of people (including me) are either creating new account or enabling disabled account they don't use anymore.
 » 2 years ago, # |   +3 Can anyone please clarify my doubt regarding time limit for running of a problem. Like in codeforces for some question it is 1 s and for some it is 2 s as there is no mention regarding this on the hackercup's problem page.
 » 2 years ago, # |   -8 Everyone who solves at least one problem correctly will advance to Round 1 Does that mean I will surely qualify if I solve only one problem? Is there any benefit of solving more than 1 problem other than improving rank in the leaderboard.
•  » » 2 years ago, # ^ |   0 Improving your skills?
•  » » » 2 years ago, # ^ |   0 That's fine but I was quite busy this week, so I am afraid I won't be able to devote time to all the questions. That's why I asked...
•  » » » » 2 years ago, # ^ |   0 You will surely qualify if your submission is correct, which you will know when the contest ends. But i do actually recommend solving other problems, other than the first one, they are good for practicing for next rounds of FHC.
•  » » » » » 2 years ago, # ^ |   0 OK thanks, I'll do that
 » 2 years ago, # |   0 I am not sure if clarifying test cases explanation is allowed or not. If not, please ignore this comment. In the sample test case #5, the output of the cell (1,3) is Y, but in the problem its said |i-j|=1, so it should be N. Can anyone please clear this if possible?
•  » » 2 years ago, # ^ |   0 Read the question carefully.
•  » » 2 years ago, # ^ |   0 yes having same problem,have you figure it out
•  » » » 2 years ago, # ^ |   0 Yes! Read the problem statement correctly. I happended to miss a line, which caused such confusion.
 » 2 years ago, # |   +3 Are there any constraints on the time complexity of the solution? For example here on CF. I can get an idea that expected solution should be in O(n) or n(log(n)) or so on.
•  » » 2 years ago, # ^ |   0 Your program can take O(n^2) time too, you just have to submit the output file within six minutes of downloading the input file. They won't run your source code, so the complexity doesn't matter.
• »
»
»
2 years ago, # ^ |
0

# Pays for a data center server, for my recursive brute force approaches for every solution.

 » 2 years ago, # |   +75 Problem C input file was big (>27mb) that it took more than 6 minutes to download it with my super-fast internet speed. Yikes!
•  » » 2 years ago, # ^ |   +5 Same thing happened with me. I think I had the correct solution for C, but my internet betrayed me T_T. Now I don't have the will to do problem D.Facebook should have some mechanism to start the timer once the input file has been downloaded.
•  » » » 2 years ago, # ^ |   +18 It seems practically impossible for them to check if the file is downloaded or not unless we have some browser extension. But I think they should avoid big files (compressing?) or find another solution. People with slow internet might lose significant time (big disadvantage) because of that.
•  » » » » 2 years ago, # ^ |   0 On top of that, someone who has a poor internet and a slow machine is at a significant disadvantage. It feels bad not being able to get an AC because of such reasons.
•  » » » » » 2 years ago, # ^ |   +22 Another issue is that someone might have power/internet loss for some minutes. I'm sure these issues are already discussed, but I like the idea of having password-protected zip files as inputs, and the timer starts when you request the password.
• »
»
2 years ago, # ^ |
+14

Adding another Pre requisite for hacker cup in FAQ

# ) Good internet

•  » » 2 years ago, # ^ |   0 Faced with the same issue here as well. Hope FB employs a better approach from next time.
 » 2 years ago, # |   0 Does validating solution also tell us if our code gives correct output on the input file? Might be a dumb question to ask but this was my first HC and I have never participated in codejam.
 » 2 years ago, # |   0 do I need to include the following lines in my code while submitting the code?freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
•  » » 2 years ago, # ^ |   0 They won't run the code, they just see that the code is doing what it suppose to do.
 » 2 years ago, # |   -9 Well, where are the time limits? :3
•  » » 2 years ago, # ^ |   0 Since they only check the output file. I think that only thing that matters is if you can get your output written to file and submit it in under 6 minutes.
 » 2 years ago, # | ← Rev. 3 →   0 LoneFox Sir, I ran into a problem during the Facebook Hacker Cup. I validated my solution on Problem D1: Running on Fumes — Chapter 1. However, when I downloaded the final test case, the text file was filled with random characters as below, input fileSo I ran out of the 6 minutes time in which I was supposed to submit the output. I would request you to look into the problem, and if possible, restore the access to that problem. Thank You
•  » » 2 years ago, # ^ |   0 I had the same problem. By the time, I copied the input,time had run out.
•  » » 2 years ago, # ^ |   +1 I faced the same problem. The issue was resolved after I sent a clarification with sufficient proof.
•  » » » 2 years ago, # ^ |   0 I asked for clarification and attached a screenshot of those random characters.Do I need to do anything else?
•  » » » » 2 years ago, # ^ |   0 Wait for them to reply.
•  » » » » » 2 years ago, # ^ |   0 Where did you send it ?
•  » » » » » » 2 years ago, # ^ |   0 Go to the clarifications page and request a clarification.
 » 2 years ago, # |   0 can anyone tell me why it is showing presentation error ? how should i print the output ?
•  » » 2 years ago, # ^ |   0 Look at the sample output.
•  » » » 2 years ago, # ^ |   0 thanks , got it
 » 2 years ago, # |   +75 anyone had problem with stack size in d2?
•  » » 2 years ago, # ^ |   +1 I did. It was a nice problem, would have loved to get AC on that. :(
•  » » » 2 years ago, # ^ |   +8 Same lol. What's the g++ compile flag to increase stack size?
•  » » » » 2 years ago, # ^ |   0 I don't know. I was not in a very good mood. Haven't searched yet.
•  » » » » 2 years ago, # ^ | ← Rev. 2 →   +19 https://codeforces.com/blog/entry/60999?#comment-449312Also a bit more about it here but apparently the link isn't working for everyone.
•  » » » » » 2 years ago, # ^ |   0 Thanks, that worked.
•  » » » » » » 2 years ago, # ^ | ← Rev. 3 →   +16 Also for ppl who are too lazy to click the link under a 6 minute time crunch, here's the command: g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
•  » » » » » 2 years ago, # ^ | ← Rev. 2 →   0 any idea how to increase stack size in sublime Lol, it took me one day to come up with the solution and still not able to submit it. But learned something newEdit: I guess will need to use terminal for this
•  » » 2 years ago, # ^ |   +14 ulimit -s 1000123 in ubuntu. Or you can do it at the beginning of main() in C++ as described here
•  » » » 2 years ago, # ^ | ← Rev. 2 →   +3 ulimit -s size is going to work for only one login session. For most computer i guess default stack size is 8mb. I changed the default size from 8 mb to 1 gb at /etc/security/limits.conf
•  » » » » 2 years ago, # ^ |   +18 I did said changes to /etc/security/limits.conf and it somehow broke my chrome :( had to revert it.
•  » » » 2 years ago, # ^ |   +10 Please add this to your linux setup wiki.
•  » » 2 years ago, # ^ |   -21 Same happened to me... It irritated me a lot .. Wtf it was
•  » » 2 years ago, # ^ |   -63 I personally think that it is unfair ... I was so happy on solving that problem .. Only dfs and bfs(it would be iterative and therefore pass) made a difference
 » 2 years ago, # |   +105 Suggestion: have password-protected zip file. Contestant downloads it, and then indicates he would like the password. Start the timer then.
•  » » 2 years ago, # ^ |   0 Yup, that's a good idea. Especially, considering the low internet bandwidth speed in some non-developed countries or regions/cities of the countries, the contestants may fail to even make a submission due to download speed, which could last several mins. But a password system could really benefit them, as they could download the zip files beforehand without the 6 min timer starting the moment the download button is pressed.
•  » » 2 years ago, # ^ |   0 Password protection is very good idea, but zip protection is not that secure, I have used some tools(2 or 3 years ago),which are easily available on internet for bypassing security and unzip/unrar password protected files.
•  » » » 2 years ago, # ^ |   0 TLDR; long, random password with non-ancient encryption cannot be cracked easily
•  » » » » 2 years ago, # ^ |   0 I guess then, I might have done it for weak encryption system, hence I could got access to inner contents.
 » 2 years ago, # | ← Rev. 2 →   0 Hi.In problem D1, I tried running my code locally on large input file(~11MB) but my PC froze and I had to forcefully shut it down.By then, the submission time of 6 mins had already expired.Is there any tool using which I can run my codes on large input files online? Thanks in advance
•  » » 2 years ago, # ^ |   +13 Sounds like you used too much memory (too big memory complexity), and you ran out of RAM. That usually also means that your runtime complexity will be to big, and your program will not finish in time, even if you rent a server with >100 GB RAM. You need to improve your solution.
•  » » 2 years ago, # ^ |   0 You should try google colab. It's easy to run C++ and python scripts in it, have nice specs (RAM and processor) and it's free. A marvelous alternative for low-end pc users.
 » 2 years ago, # |   +58 This is weird testing. In D2, my local system got hung on this large input. And timer expired. -_-
•  » » 2 years ago, # ^ |   0 Same thing happened in my problem C. Input file was 30mb. Downloading it took 5 minutes. After running it my local system got hung on this large input :/ I mean why can't they have a system similar to Google Codejam for example? :/
•  » » » 2 years ago, # ^ |   -10 Same here buddy I lost my motivation to solve any further after I failed to submit C in time, I wonder if our job is coding or testing
•  » » 2 years ago, # ^ |   -25 If you're not talking about downloading speed, most likely your solution was just not efficient enough. Treat this as TLE or MLE in a normal contest.
•  » » » 2 years ago, # ^ |   0 Actually, I think my time(and memory) complexity was well enough to fit in a reasonable limit. I guess allocating a huge memory(something like 300MB) caused an overflow in local system.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   -39 But sir what about dfs_stackOverflow .. there's no point of judging solutions on the basis of this ....
•  » » » » 2 years ago, # ^ |   +29 then increase your stack limit
•  » » » » » 2 years ago, # ^ |   -13 Yup I did it now
•  » » » 2 years ago, # ^ |   -9 Can you tell me how to read a large input from a .txt file and outputting in some other .txt file? I tried but i could not read more than 1e5 words.
•  » » 2 years ago, # ^ | ← Rev. 4 →   -98 Same here. My stack was not huge enough to work with a graph with $10^6$ nodes(Increasing the stack size didn't help, so sadAfter the 6min timer I replaced DFS with BFS and now I have the answer, but who cares now..(To authors: Isn't $10^5$ or $2 \times 10^5$ vertices enough? I believe it would hurt people much less than it actually does.
•  » » » 2 years ago, # ^ | ← Rev. 5 →   +26 I'm a bit reluctant to talk about the contest while it's still running, and I think we all should at least a bit. You're still giving information about the solution and an unfair warning to some before starting the 6 min. Nevertheless, I'll do a similar thing and explain your questions with my opinion.You're right and it's another challenge, not exactly related to the problem. But those things happen and now you can consider it in the future. Or maybe you can find a proper way to increase your stack limit that'll work and use it later. I had this problem in previous years and I learned how to do it and now I didn't need to change anything. For the part for the authors, I don't think that they could safely assume that it'd be okay to have lower limits. I'd be pretty sure to solve it in slower time complexity but in an optimized way that it'd work pretty fast in the general case. Also, I think I'd be comfortable with another few testcases that would take several seconds. I would've given it a shot before finding a better solution because it's not required to solve that to pass the round and trying to squeeze it to fit time limit sounds more fun.But more importantly, people that couldn't find a solution would try it and again I'm pretty sure that some non-negligible portion of them would fit in into time window. If I were an author I'd do the same. And finally, that number of vertices wouldn't solve the problem for most. I think you still should do something different to be not challenging your stack limit.
•  » » » 2 years ago, # ^ |   -37 Exactly .. why not 2*10**5 ???
•  » » » » 2 years ago, # ^ |   +13 My take is on the upper comment.Simply, it wouldn't be safe to assume that slow solutions won't be able to generate the output in 6 mins in that case. You or the most probably could've solved it in, let's say $O(n^2)$.
•  » » » » » 2 years ago, # ^ |   -17 Sum over all test cases can be kept same .. but in individual can be reduced to disable low solutions like o(n**2) ones
 » 2 years ago, # | ← Rev. 3 →   -61 For those who solved D2, how you would rate it in codeforces? What would any of you rate the other problems? I solved everything up to D1 and I would rate: A: 1000-1200 B: 1400-1500 C: 1600-1700 (maybe more? it actually took me a while but after solving it, it seemed easier). D1: 2100-2200 Errichto I saw you solved it super fast, what rating would you give D2?Edit: Does anyone agree with my ratings? just curious
•  » » 2 years ago, # ^ |   -60 Hey, can i please talk to you on another platform ?
•  » » » 2 years ago, # ^ | ← Rev. 2 →   -57 Can I ping you somewhere else please alon276 ?
•  » » 2 years ago, # ^ |   -36 Really 1400 in B? I thought its easier than A and something like 1000. Now i think my sol is incorrect :(
•  » » 2 years ago, # ^ |   -36 Not for B, I think B is much easier than A(or maybe my solution is wrong)....
•  » » 2 years ago, # ^ |   +53 Stop discussing problems from an ongoing contest. (unless the rules say that it's ok to discuss the qualification round publicly)
•  » » 2 years ago, # ^ | ← Rev. 2 →   +4 And now that it is overA: 1000B: 1300C: 1600D1: 1600
•  » » » 2 years ago, # ^ | ← Rev. 2 →   +8 A: 1400B: 1100C: 1900D1: 2200D2: 2600 (I didn't solve it)
•  » » » » 2 years ago, # ^ |   +32 A: 1400B: 1000C: 1900D1: 1700D2: 2100
•  » » » » 2 years ago, # ^ |   0 D1 is definitely not 2200 — I solved it within a relatively short time and I have never solved a 2200 rated problem. I'm curious how A and B should be compared. It took me much longer to think of a solution for B (although it passed, and I have some intuition, I don't really know how to prove abs(countA-countB)==1 is sufficient) but A was straightforward. I know A requires knowing about DFS/BFS which a lot of lower rated participants won't know, but still.
•  » » » » » 2 years ago, # ^ |   +7 I don't think A requires knowing about DFS/BFS ..Its an implementation problem and for B my solution which is quite intuitive as well just keeps count of A and B and if u encountered a>1 &&b >0 or b>1 && a>0 then just decrease a and b both ...and finally if we have a=1&&!b or b=1&&!b then print Y else N..
•  » » » » » » 2 years ago, # ^ |   0 Regarding problem B, thanks for the explanation.Regarding problem A, yeah, you are right — it can be done without knowing about DFS/BFS. I think it's appropriate to say A is a very standard problem for anyone who did even a few problems about graphs, whereas B is an observation/ad-hoc problem, requiring at least some thinking.
•  » » » » » 2 years ago, # ^ | ← Rev. 2 →   +5 For question B, the placement of As and Bs will never prevent a sequence from collapsing. For any 3 char sequence you pick such as "AAB", it will collapse to "A", which ultimately results in subtracting 1 "A" and 1 "B" from the sequence. To fully collapse, the end result must be "A" or "B", so the difference in counts must be 1 in order to achieve this.
•  » » » » » » 2 years ago, # ^ |   0 Makes sense, thanks.
 » 2 years ago, # | ← Rev. 3 →   -31 .
•  » » 2 years ago, # ^ |   -10 Yeah , that's why I tried to submit second question first so that atleast I know how to run that input file but I couldn't find out till now ? Help me if you know how.
•  » » » 2 years ago, # ^ |   0 Write your full code. Check with the validation test cases and copy and paste the output in some txt file and upload it, once your output is right. They will provide you more test cases, and you have to upload the output in txt file as well as your source code file, doesn't matter either is has extension as py, java, c++, or txt. It must contain text. Ya that's it.
 » 2 years ago, # |   +3 So where can I run that input file to get output?? Please tell me if you know...
 » 2 years ago, # |   +3 I use VScode for CP, but for D1, the input file was so large,my system did not print anything.Timer expired.My query is how to deal with these large files for the other questions?
 » 2 years ago, # |   +4 how do i run a c++ program having array input of size>10^5,because i failed to submit the facebook hacker cup question d1 sol because my pc failed to compile/run their input files.please suggest any online compiler which takes such a large in put file
 » 2 years ago, # | ← Rev. 2 →   -65 .
•  » » 2 years ago, # ^ |   +22 I don't understand even when you have full 72 hours, why don't you guys read the question carefully?
•  » » 2 years ago, # ^ |   0 Reread the question and keep thinking.
 » 2 years ago, # |   +18 Why can't Hacker's Cup use a separate account? My account has gotten "deactivated" twice in the past two days and it's simply annoying. It's not like us programmers even use the account in the first place. We usually end up deactivating it so why bother go through the trouble.
•  » » 2 years ago, # ^ |   +18 Welp. Now my Facebook account is deactivated because "it violated community guidelines" (just a reason to force me to upload a picture of myself, I surmise, as it's hard to violate any community guidelines when all you've done is submit problems to Hacker's Cup) and I can't submit anything. Another reason why Hacker's Cup should use separate accounts.
 » 2 years ago, # |   0 Is there supposed to be a time constraint for each problem?, since the problem statement didn't explicitly mention it. Or does it only check the correctness of your output file?
•  » » 2 years ago, # ^ |   0 They'll only check the output file and not run your code. The source code is only asked to check for cheating.
 » 2 years ago, # |   0 I am getting a presentation error while submitting my code. How to remove it. What is format of the submission file?
•  » » 2 years ago, # ^ |   0 May be your no. Of testcases being output is wrong . In faq it is writien clearly about presentation error.
 » 2 years ago, # |   0 Guys can you please tell me why rank doesn't change even after i submitted my first solution?
•  » » 2 years ago, # ^ |   -10 Any how it is qualifications round . I don't think you should worry about rank . Just make sure your output is correct. And it will change some time after.
•  » » 2 years ago, # ^ |   0 Your score and rank will update as soon as you make a validly-formatted official submission. Please confirm that you're making a full submission (not just validating your solution), and that you didn't receive a Presentation Error verdict due to submitting an improperly-formatted output file.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 Yes, i made the valid submission, they accepted it , i uploaded the test case output as well as source code and they have given me 10 score but my rank doesn't change. Why?
•  » » » » 2 years ago, # ^ | ← Rev. 2 →   +16 Imagine these standings:1st: 100 points2nd: 50 points3rd-5th: 0 pointsWe show that as 1, 2, 3, 3, 3.If you go from 0 to 10 points, then you'll be in 3rd place still, as the rankings will be 1, 2, 3, 4, 4.
•  » » » » » 2 years ago, # ^ |   0 Okay, got it
 » 2 years ago, # |   +96 By the way, the new system looks very nice and clean! Probably the nicest looking competitive programming website right now?
•  » » 2 years ago, # ^ |   +38 Thanks very much! We've been working on the redesign for a while.
 » 2 years ago, # |   0 Can someone please help me to solve "Presentation Error"? Even Though My code has same format as mentioned in sample test cases.
•  » » 2 years ago, # ^ |   0 it means u got wrong answer
•  » » 2 years ago, # ^ | ← Rev. 2 →   0 Presentation Error indicates that either the format isn't quite as expected (though there is some leniency), or your file includes the wrong number of test cases. Please double-check that you're uploading the correct file.
•  » » » 2 years ago, # ^ |   +10 What we have suppose to submit, code, or output file?
•  » » » » 2 years ago, # ^ |   +10 When validating your solution, you should only upload your output file. After that, when making an official submission, you should upload both your output file and source code file.
•  » » » » » 2 years ago, # ^ |   0 Thanks, got it.
 » 2 years ago, # |   +150 The increased prize is awesome, but what are coordinators' thoughts on cutting it down to like $18k or something so that you can spend the extra$2k on tshirts for top 500 or something like in previous years? As someone who probably isn't going to beat Gennady this year, it's inspiring to have the more realistic goal of earning a shirt instead...
•  » » 2 years ago, # ^ |   +53 T-shirt shipping is unfortunately a little trickier at the moment with the global coronavirus situation, but stay tuned for a prize announcement later :)
 » 2 years ago, # | ← Rev. 4 →   -41 Lol,
•  » » 2 years ago, # ^ |   +8 This is not the appropriate forum for clarifications.
•  » » » 2 years ago, # ^ | ← Rev. 2 →   -19 Lol, 2
•  » » » » 2 years ago, # ^ |   -12 Wanna clarify? Read the question again.
•  » » » » » 2 years ago, # ^ |   -8 i already got it right, need not to make any more clarification. Thanks
•  » » » » 2 years ago, # ^ |   0
 » 2 years ago, # |   -10 My PC froze for 5 minutes when I downloaded the input file for D1 and when it was back to normal, I could only see weirdly formatted text in that file. feelsbadman.jpg
 » 2 years ago, # |   +118 in order to minimize spread of COVID-19, we maximized number of transfer connections you need to take Is this how USA deals with coronavirus? Would explain a lot :P
 » 2 years ago, # | ← Rev. 2 →   +14 Any Idea how to fix this first they asked for my phone number and then my photo and once I uploaded it shows this LoneFox wjomlex?
•  » » 2 years ago, # ^ |   0 Also happened to me. Exactly why Hacker's Cup should use a separate account other than Facebook.
•  » » » 2 years ago, # ^ |   0 How did you fixed it buddy I cannot even see my results please help I've been trying to fix it since 2 hrs
•  » » » » 2 years ago, # ^ |   0 Haven't fixed it. Been 24 hrs, no solution. I already submitted to all the problems I could solve though. Not too sure what to do now.
•  » » » » » 2 years ago, # ^ |   0 Yeah I wonder if I qualified for the next round or not, please tell if you figure out something
•  » » 2 years ago, # ^ |   0 We apologize that you've run into such issues. We're working on finding out more about whether some accounts have been disabled in error and, if so, what might be done about it.
•  » » » 2 years ago, # ^ |   0 Thanks a lot for replying I hope this will be resolved soon
•  » » 2 years ago, # ^ |   0 Lelouch.Lamperouge, please email hackercup@fb.com with your Facebook account name, and we can look into your case and hopefully have your account be re-activated. Thanks!
•  » » » 2 years ago, # ^ |   0 I have mailed to the Email ID you provided with my name(Achintya Eeshan) and the email at which my FB account was registered, please tell if any further action has to be taken from my side
 » 2 years ago, # |   -26 I tried everything. but is showing presentation error. can anyone please help me ? Case #1: YY YY Case #2: YY NY
•  » » 2 years ago, # ^ |   +1 Download the sample output and use diff to compare your output with the sample output.
 » 2 years ago, # |   0 In problem D1, there is a test case of 999946 size of array which cant be process on my system. What to do? I have tried declaring vector/array globally.
•  » » 2 years ago, # ^ |   0 Exactly my problem too....
 » 2 years ago, # | ← Rev. 2 →   0 how to overcome stack overflow error? I can't get any output now. How can I increase the Stack-size in c++?
•  » » 2 years ago, # ^ |   +3 se this link :)
 » 2 years ago, # |   -10 The Input File for D1 was too large, I think my solution was correct, it got validated, and I ran it on 96 cases (basically repeating the validation input several times), but when I ran my code on the main test cases, it crashed my Sublime IDE, and I could not submit, despite everything.
 » 2 years ago, # |   -24 Why can't they have normal input and output, like some pretests or something? Why do they put contestants through stupid things like "download this" and "validate that". Just take the damn source code man.
•  » » 2 years ago, # ^ |   -11 Exactly, it kinda frustrating, our source codes, would be perfectly right, but, we're not able to get points, because of all these formalities.
•  » » 2 years ago, # ^ |   0 There are benefits and drawbacks to both, with pretests the codeforces servers have been seen to sometimes have a long queue recently, although I suppose 72 hours to submit on your own time would make it less of a big deal.
•  » » 2 years ago, # ^ |   +8 I personally prefer submitting code (because I find it more convenient), but the cool thing about downloading the file is that you can use any language and libraries you want (like you could implement your solution in Mathematica or use numpy or something else), or even combine multiple languages or have a manual step in some rare circumstance.
 » 2 years ago, # |   0 If the person hasn't cheated and has passed the validation as well as full input file ? Are there any chances that he will get it incorrect after the contest ends ? I mean the full input file are the total test cases ?
•  » » 2 years ago, # ^ |   0 On grading input they don't show you result ,so after the contest they will show that ouput you submitted was correct or not. :)
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 And when this sys-test occurs, I mean is it as fast as Google Kickstarts ? Also are the full input file same for all users ?
»
2 years ago, # |
-12

f1=open('input.txt') f2=open('output.txt','w')