1. Skip to content

Grab our RSS feed

Scarky.com

This post explains how to create a challenge in the programming category. Here is what we are going to build:

As mentioned before in the Using Scarky builder post, creating a challenge is very simple.

Let’s fill up first few fields:

  • Title: Addition
  • Challenge site: the site on which you are going to place the challenge, for example:
    http://www.my-site.com/my-first-challenge
  • Home page: your home/blog page, for example
    http://www.my-site.com
  • Content:
    <p>A+B=?</p>
    <h3>Input</h3>
    <p>Two integers A, B separated by space. 0&lt;=A,B&lt;100</p>
    <h3>Output</h3>
    <p>Sum of A and B</p>
    <h3>Example</h3>
    <pre><strong>Input:</strong>
    7 8
    <strong>Output:</strong>
    15</pre>

Meaning of the fields:

  • Title will be displayed in Scarky statistics and in the widget on you site.
  • Content describes the users’ task.
    In programming category you should specify here I/O format and place here some sample I/O data.
  • Challenge site specifies address of the site on which the challenge will be put. For example:
    • http://john.blog.com/2009/07/my-challenge
    • http://www.johns-site.com/some
    • http://www.some-blogs.org/john/?p=123#here

    This address will be placed in Scarky statistics so that all Scarky visitors will have opportunity to find your challenge on Scarky and then solve it on you site.

  • Home page is simply address of your site. It will identify you as the challenge author. In Scarky statistics all challenges you create will be grouped by this address. Remember then: each time you create a challenge, provide the same home page address.
    Here are examples of home page addresses (corresponding to those from the previous field – challenge site):

    • http://john.blog.com
    • http://www.johns-site.com
    • http://www.some-blogs.org/john

Now lets complete next four fields:

  • Languages: select all
  • Input: 8 10
  • Output: 18
  • Rank type: Standard binary, sort by date

Meaning of the fields:

  • Languages – choose in which programming languages users are allowed to submit their solutions.
  • Input – type here or upload a file for input test data. This data will be given to the standard input stream of tested programs (solutions to your challenge).
  • Output – type here or upload a file for benchmark output data. This data will be used for comparison with output of the tested programs (solutions to your challenge).
  • Ranking type determines how the standings of users’ solutions will be calculated and displayed in the Hall of Fame (each challenge has its own ranking called Hall of Fame). The ranking types are:
    • Standard binary, sort by date – the result can be accepted or not; solutions are sorted by the date of the submission (first submissions are considered to be better)
    • Standard binary, sort by time – the result can be accepted or not again; solutions are sorted by the time of the execution (programs running faster are considered to be better)
    • Standard binary, sort by memory – just like before the result can be accepted or not; solutions are sorted by the usage of the memory (programs that use less memory are considered to be better)
    • Minimum source length – the result is the length of the source code, in bytes (programs with smaller source code are considered to be better)

And now the rest of the fields:

  • Duration: choose in what period users will be allowed to send solutions to your challenge
  • Don’t show in statistics: if your are creating challenge for testing purposes then check this option
  • Resource: choose origin of the challenge
  • Send me links: your email

Here is their meaning:

  • Duration specifies from when and until when your challenge will be available for other users. Before the start date and after the end date sending solutions to your challenge won’t be possible.
    Check the starts right away to activate the challenge immediately after it’s creation. Check the lasts forever option if you want the challenge to never end.
  • Start date determines since when users will be able to submit solutions to the challenge.
  • End date determines until when users will be able to submit solutions to the challenge.
  • Don’t show in statistics – check this option if you don’t want the challenge to appear in Scarky statistics. Besides the fact that link to the challenge won’t be displayed in statistics, it will be fully functional. Use it when you are testing your challenge and when you are trying Scarky out – checking this option in such cases will keep Scarky statistics unpolluted :)
  • Resource describes the origin of the challenge. It can be address of a site or an online judge, your name or simply some peace of text.
    If your challenge is based on a problem from an online judge, choose its name from the drop down list. If you choose My own challenge option then your home page address will be treated as the resource. Choose Other to specify custom resource.
  • Custom resource – specify here custom resource (it can be address of a site or an online judge, your name or simply some peace of text).
  • Send me links – when you finish creating the challenge, Scarky builder will generate link and html code for you. Enter here your email if you want to receive the link and html code of your challenge.

When you complete all required fields, press Save challenge button.

You will see a link and generated HTML code. The link is needed to modify or to delete the challenge, so:

  • don’t loose this link (otherwise you won’t be able to edit the challenge) and
  • keep it safe! (or anyone will be able to change your challenge)

To place the challenge on your site or blog, copy and paste generated HTML code. And that’s it – the challenge is now ready to use :)

Comments are closed