New problem
Explanation
The problem story. Paste, drop or insert pictures; click a picture to resize it.Input
What the input looks likeOutput
What the program must printConstraints
Write math between $ signs, e.g. $1 \le N \le 10^5$Co-op setup
Player 1 writes the top ofmain.c; Player 2 carries on right after it, using Player 1's variablesEach player is also tested on their own, joined to your code, so one player can't do both parts.
On the problem sheet what Player 1 reads, under "Player 1"
Code
On the problem sheet what Player 2 reads, under "Player 2"
Code
Hint
Hidden from players until they use a hint (everyone starts with 3). On co-op problems this is the Global view's hint; each player's own hint is in Co-op setup.Examples
Shown on the paper. Students can test against them.Credits
Shown at the bottom of the paper. The rank appears under the name; leave it blank to hide it. An empty group is not shown.โจทย์โดย
ผู้ทาน
Custom script On: expected outputs may use
{string} (any text), {clan} (the student's own clan, English or Thai),
{word}, {int}, {number} and {any}. Example: Hello, My name is {string}.
{clan} also works in the story: it shows the reader's clan name.
Co-op: there are three sets. Players only clear the problem when all three pass; each player's own results show as
PPF… next to their code.
.in / .out files here.