Problem code
Unique problem code, consists of 3 up to 8 capital letters.
Co-authors
Group of people related to this problem. The group must exist (you can create new one clicking "add group" menu position).

You should use this option if you want to grant access to your problems for other co-authors.
Source code limit
Source code size limit of solutions sent by users, measured in bytes.
Resource
Origin of the problem (cxhelp_edit_problem.html).
Problem type
Type of problem:
  • Classic - classic problem, i.e. solution program should print answer to the standard output; the answer is checked after the program finishes;
  • Interactive - interactive problem, i.e. solution program can talk with the judge during the execution (by using standard input and output).
More information can be found in tutorial.
Assessment type
Type of the problem:
  • Binary - "accepted" or "wrong answer".
  • Maximize score - higher score means better solution.
  • Minimize score - lower score means better solution.
Checker
How the problem is judged:
  • Pyramid Cluster [deprecated] (Intel Pentium III 733 MHz) - automatically.
  • Cube Cluster (Intel Pentium G860 3GHz) - automatically.
  • Manual - manually by problem setter.
Important: since 2014-07 it is no longer possible to use the Pyramid Cluster. All problems will be switched to the Cube Cluster in 2014.

Check http://www.spoj.com/clusters/ for more information about the clusters.
Placement in main problem set
Choose in which section your problem should appear.

If you are going to test this problem, it's incomplete or has no english version, check none option - problem will be available only for you.

If you would like this problem to appear in main contest then select appropriate option, but keep the previous hint in mind.

If you are a contest setter and you don't want to publish this problem in main contest, check none option. Only you in your contests will be allowed to use this problem (but if you check the Available for use in 3rd party contests option then every contest setter will be able to add your problem to his contest).
Testable
Check this option if you want to allow submitting solutions to this problem.
Available for use in 3rd party contests
Is it possible to use your problem in other contests? (see also Placement in main problem set above)
Available for use in 3rd party software
Is it possible to use your problem in other Online Judge?
Dynamic content
Deprecated.
Form problem
Allows you to use our smarty form controls.

Generate input and output
Select this option if you want generate input and output data for judge. Only for "Form problems" !
Master judge
Source code of high level judge - used for multiple test cases and for single data set as well. You can write your own judge, if you need it.

Defualt judge (1000. Generic masterjudge) accepts solution only if all test cases are accepted.

If you want the score to be percentage of accepted test cases, choose judge no. 1001.
Problem test sequnce
Define here which test cases use to judge solution (you can upload test cases below in Test data upload section).
Available languages
Mark languages in which users can upload solutions.
Include new languages
If this option is enabled, all languages added in the future will be automatically available for this problem.
Merge all languages in ranklist
If this option is disabled participant will appear in problem's score table as many times as he changes programming language. In other case he'll appear only once.
Continue editing after saving changes
If you check this option and click Modify, problem description (modified version) will appear in new window.
Test data upload
Here you can add, modify or delete test cases and choose judges for them. Usually one data set suffices but if you wish you can add more.
Add, modify or delete test case
Choose whether you want to add new test case or to modify or delete existing one.

Notice:
Input and output text files are uploaded from the specified file on your computer. The provided file may be zipped or gzipped; if so, make sure it has the correct extension (.gz and .zip respectively). The size of the uploaded file may not exceed 1MB.
Input file
Choose input data (if problem has no input data you can leave this field empty).
Output file
Choose output file (if problem has many correct answers you can leave this field empty and use your own judge).
Test case judge
Add your own judge or choose between predetermined judges:
  • Ignores extra whitespaces - the standard judge for binary problems, i.e. problems of ACM-type: Accepted or Wrong Answer. Output generated by submitted program should be the same as test case output file (except whitespaces).
  • Ignores FP rounding UP tp 10-2 - the standard judge for binary problems, i.e. problems of ACM-type: Accepted or Wrong Answer. Use this judge for numerical problems. Output generated by submitted program should be the same as test case output (with accuracy 0.01).
  • Ignores FP rounding UP tp 10-6 - the standard judge for binary problems, i.e. problems of ACM-type: Accepted or Wrong Answer. Use this judge for numerical problems. Output generated by submitted program should be exactly the same as test case output (with accuracy 0.000001).
  • Score is source length - score for the solution equals to length of source code (only if test case was accepted).
Rejudge submission range
All submissions within specified range will be rejudged. Use this feature only in case of invalid data set, your own invalid judge, etc.

Remember: rejudging many solutions may take a lot of time - better check your test cases twice and try to avoid rejudging solutions.

Edit problem


please, use only letters and digits

please, use max. 50000 B

please, give info about the origin of the problem

  
     
Manual Pentium G860 3GHz

The Pyramid Cluster is deprecated and it is no longer possible to use it for any problem.

                 

Note: the above flag must be set to none for all problems which are incomplete or have no problem text in English.


Problem body

Important: Before you start creating a problem description please make sure that you are familiar with our guide.

correct HTML code, English version only!



Available languages

Mark languages in which users can upload solutions




Test data upload

Here you can add, modify or delete test cases and choose judges for them. Usually one data set suffices but if you wish you can add more.

Test Input Output Judge Time limit Enabled
#0 6 bytes 8 bytes s
#1 6 bytes 8 bytes s
#2 8 bytes 12 bytes s
#3 12 bytes 16 bytes s
#4 12 bytes 20 bytes s
#5 17 bytes 22 bytes s
#6 19 bytes 31 bytes s
#7 26 bytes 35 bytes s
#8 33 bytes 45 bytes s
#9 59 bytes 87 bytes s
#10 58 bytes 67 bytes s
#11 144 bytes 209 bytes s
#12 149 bytes 162 bytes s
#13 152 bytes 194 bytes s
#14 386 bytes 535 bytes s
#15 434 bytes 611 bytes s
#16 194490 bytes 6890 bytes s
#17 194511 bytes 6890 bytes s
#18 194549 bytes 6890 bytes s
#19 272212 bytes 136393 bytes s

Add/modify testcase

Choose whether you want to add new test case or to modify or delete existing one.


Input file: 
Output file:
Test case time limit [s]:
Test case judge:

Master judge

for multiple datasets

current judge

modify master judge:





Rejudge submission range

First submission ID: Last submission ID:
Refresh cached info about test sequence

Export problem

All data Testcases