You are not logged in. Please login at to post your questions!


How to generate and test against large test cases.

I would like to know how to test my program against large test cases (n=10^6)

The input box under code compile and run take in a max of 65535.

So does the output, so even if I write a program to generate the test case, it only prints the first 65535 numbers.

Please help.

asked 11 Jul '17, 21:55

abdullah768's gravatar image

accept rate: 17%

I think spoj toolkit will help!


answered 11 Jul '17, 21:58

saisurya027's gravatar image

accept rate: 0%

It gets stuck if I ask for an array of 10^5. Another issue is even if I manage to get the test case from there, the custom input box on code chef takes in only the first 65536.

(11 Jul '17, 22:00) abdullah7686★

Don't you have ide's like codeblocks etc

(11 Jul '17, 22:01) saisurya0274★

I don't which one would you suggest?

(11 Jul '17, 22:02) abdullah7686★

Codeblocks is best

(11 Jul '17, 22:03) saisurya0274★

I tried using code blocks but I'm getting different outputs on code chef and code blocks for the exact same program and exact same input.

(12 Jul '17, 01:18) abdullah7686★

you can generate large test cases by writing code and using rand function.


answered 11 Jul '17, 22:05

hruday968's gravatar image

accept rate: 14%

@abdullah768 please ask if you have any doubt.

(12 Jul '17, 04:03) hruday9685★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 11 Jul '17, 21:55

question was seen: 513 times

last updated: 12 Jul '17, 04:03