C Practice Admin </> Code playground ↗ ? How it works ↗ View site ↗

New problem

Mode
Custom script
Difficulty

Explanation

The problem story. Paste, drop or insert pictures; click a picture to resize it.

Input

What the input looks like

Output

What the program must print

Constraints

Write math between $ signs, e.g. $1 \le N \le 10^5$

Co-op setup

Player 1 writes the top of main.c; Player 2 carries on right after it, using Player 1's variables
How the program is put togetherClick a piece to edit it
Team tests 0
Player 1 tests 0
Player 2 tests 0

Each player is also tested on their own, joined to your code, so one player can't do both parts.

Checklist
    Runs your solution on every hidden test (saved or not), in all three sets.

    On the problem sheet what Player 1 reads, under "Player 1"

    Code

    Player 1's code ends here ↑

    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.

    โจทย์โดย

    ผู้ทาน

    Ctrl+S to save

    Live preview