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

×

WEICOM - Editorial

PROBLEM LINK:

Practice
Contest

Author: Trung Nguyen
Tester: Oleksandr Kulkov
Editorialist: Oleksandr Kulkov

DIFFICULTY:

MEDIUM

PREREQUISITES:

None

PROBLEM:

$n$ players participated in tournaments. Each player compete with each other once. Winner earns $1$ point, loser earns $0$ points. After the tournament player that won $g_i$ games is awarded by $g_i^2$ money. You have to check if it is possible that overall earns of players equals $k$.

QUICK EXPLANATION:

TODO

EXPLANATION:

First thing we should look at is the fact that sum of points earned by all players equals $\dfrac{n(n-1)}{2}$. TODO

AUTHOR'S AND TESTER'S SOLUTIONS:

Author's solution can be found [here][333]. Tester's solution can be found [here][444].

RELATED PROBLEMS:

[333]: The link is provided by admins after the contest ends and the solutions are uploaded on the CodeChef Server. [444]: The link is provided by admins after the contest ends and the solutions are uploaded on the CodeChef Server

This question is marked "community wiki".

asked 24 Oct '17, 06:42

melfice's gravatar image

3★melfice
811234
accept rate: 0%

edited 10 Aug, 16:28

admin's gravatar image

0★admin ♦♦
19.3k348495534

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×2,472
×64

question asked: 24 Oct '17, 06:42

question was seen: 63 times

last updated: 10 Aug, 16:28