You are not logged in. Please login at www.codechef.com 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

2★srb27199
1
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
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:

×163
×37
×25
×3
×3
×3

question asked: 20 Feb, 23:37

question was seen: 52 times

last updated: 22 Feb, 22:44