Hi All, I would like to know how to hack a code on Codeforces using a generator , could someone please show me a sample generator that he used before ? Thank You :)
UDPATE : You should print a new line at the end of the generated case , Thank You guys :)
You just have to write a code which will print the test case to stdout,that's all
I tried to use this code in the contest : http://ideone.com/AVOo0x but i got this error : FAIL Expected EOLN (stdin) [validator wfval.exe returns exit code 3]
Yes,that's because you have to print a newline character at the end of the input
aha , I didn't know that , Thank You :)
I think you missed an \n in the end..
EDIT: Just a bit late
Thank you :)
Example
Thank you but I tried to use this code in the contest : http://ideone.com/AVOo0x but i got this error : FAIL Expected EOLN (stdin) [validator wfval.exe returns exit code 3] , what's wrong with my code ?
you need cout<<endl;
Thank you :)
What is generator command line argument ?