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


Chef and Party from recent cookoff

T = int(input()) count = 0 for i in range(T): if(1<=T<=1000): N = int(input()) a=list(map(int,input().split())) a.sort() for item in a: if item==0: count+=1 print(a) for x in range(count): a.pop(x) for items in a: if items<=count: count+=1 else: break I am always getting NZEC error in most of my program codes. I have even tried to submit the solution of the problem from successful submission but I still get the same NZEC error.

asked 20 Feb, 23:37

srb27199's gravatar image

accept rate: 0%

Please provide a link to your solution. It is not easy to interpret your code in this form.

(22 Feb, 22:44) akashbhalotia5★
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

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


question asked: 20 Feb, 23:37

question was seen: 52 times

last updated: 22 Feb, 22:44