Hikaru, Touya and Waya
CodeChefOpen on judge ↗
The title of the problem has nothing to do with the problem. You are given an integer N and an array C of positive integers of size N.Is there a weighted graph with positive integer weights on N vertices such that sum of weights of edges adjacent to vertex i is C[i] and weight of edge between i and j is at most i bitwise-xor j Input First line contains T, the number of test cases. Each test case
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start