Блог пользователя Mohamed.Bassem

Автор Mohamed.Bassem, 11 лет назад, По-английски

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 :)

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
11 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

You just have to write a code which will print the test case to stdout,that's all

»
11 лет назад, # |
Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

Example


int main(){ int n = 100; cout << n << '\n'; for(int i = 0; i < n; ++i) { if(i != 0) cout << ' '; cout << 1; } cout << endl;
»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

What is generator command line argument ?