I got nzec error in the below code :it is the sol. for conflip easy exercise

Please Format your code and also provide a link to the question in the description. :slightly_smiling_face:

Edit:
I believe you’re talking about this solution. Note you have to take G as input for each test case.
Fixing that thing gives you AC
For this test case:

2
2
1 5 1
1 5 2
2
1 5 1
1 5 2

Try to run on this test case to understand why will it give you NZEC.

Traceback (most recent call last):
  File "prog.py", line 6, in <module>
    i,n,f=map(int,input().split())
ValueError: not enough values to unpack (expected 3, got 1)
2 Likes