How can I setup the judge for tree problems on codeforces/polygon?
source link: http://codeforces.com/blog/entry/107214
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
I am using polygon and code forces to set up problems for students in my university, however, I am struggling with finding the right way to set up the judge for some cases. For example, let's take the problem where they have a tree and an integer kk and they have to find the number of nodes at level kk. If they need to take the node values from the user, how can I know the tree shape they go for?
Let's say there are 3 nodes and their values are 14 15 16, since it is not necessarily a BST, it can be a tree entirely skewed to the left or right or have any of these nodes as roots with others as it is children. Maybe it would be safe to assume that the first value is for the root node but what to do after? I am new to this and lost when it comes to the sample input/output to include along with the judge configuration.
Recommend
-
27
Solving A Tree Problem Anshul Garg
-
12
law French judge rules GPL license to be inapplicable in French copyright court TL;DR
-
2
Codeforces — Basic Operator Problems (15) → Pay attention Before contestCodeforces Round #777 (Div. 2)06:25:52...
-
6
Introduction Aren't there any such sites? -_-Hi, everybody. I created an open-source site that shows a list of unsolved CodeForces problems using (*drum roll*) Codeforces API.
-
3
Why don't codeforces problems showcase the author's name? Why don't codeforces problems showcase the author's name?
-
1
Introducing my codeforces setup Introducing my codeforces setup In this blog post (w...
-
8
337A - PuzzlesFirst, let's sort the numbers f[i] in ascending order. Now assume that the smallest jigsaw puz...
-
8
Hello, codeforces!I don't know how helpful will this be to anyone, but I thought it would be nice to share it. Before reading this blog, you should be familiar with the concept of Bridges in a graph.What it can do Fi...
-
6
Rose_Barrett_M95's blog Doe...
-
3
Hello codeforces,I would like to present to you a VS Code extension which lets you solve codeforces problems directly from VS code, no need of opening a browser. Inspired from this great extension
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK