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

×

Exam Day : TLE

I don't understand why this simple code is giving TLE. Any helps would be appreciated. http://ideone.com/Y65mVA Even if there is some minor(or major :P) fault in the logic, it should at max give a WA I suppose? Thanks! :)

asked 02 Oct '15, 14:49

h1ashdr%40gon's gravatar image

3★h1ashdr@gon
2912320
accept rate: 10%

edited 02 Oct '15, 19:30


Hi,

The solutions are now public and the problems have been moved to the practice section so that you can understand the bugs in your codes.
Problem 1 - Exam Day
Problem 2 - Sad Boys
Problem 3 - Mario
Problem 4 - Quick-Math Quiz

- Kshitij :)

link

answered 03 Oct '15, 16:11

kshitij98's gravatar image

4★kshitij98
112
accept rate: 0%

edited 03 Oct '15, 16:12

Solutions are not public. Put it on ideone.

link

answered 02 Oct '15, 19:21

additya1998's gravatar image

3★additya1998
942
accept rate: 15%

Oops,totally forgot it! Here you go. http://ideone.com/Y65mVA

(02 Oct '15, 19:30) h1ashdr@gon3★

Can i get the practice link for this problem.

link

answered 02 Oct '15, 21:38

nikunjgoel95's gravatar image

2★nikunjgoel95
11
accept rate: 0%

edited 02 Oct '15, 21:40

Put strlen() out of the loop. It is every time calculating the length making the solution O(n^2)

link

answered 02 Oct '15, 22:43

suresh7's gravatar image

3★suresh7
1
accept rate: 0%

movers and packers gurgaon @ http://www.corporatemoversindia.com/ packers and movers gurgaon @ http://www.corporatemoversindia.com/ packers and movers in gurgaon @ http://www.corporatemoversindia.com/ packers movers gurgaon @ http://www.corporatemoversindia.com/ movers and packers in gurgaon @ http://www.corporatemoversindia.com/ packers movers in gurgaon @ http://www.corporatemoversindia.com/ packers & movers in gurgaon @ http://www.corporatemoversindia.com/ movers packers gurgaon @ http://www.corporatemoversindia.com/ packer and movers in gurgaon @ http://www.corporatemoversindia.com/ movers packers in gurgaon @ http://www.corporatemoversindia.com/ mover and packers in gurgaon @ http://www.corporatemoversindia.com/ packers and mover gurgaon @ http://www.corporatemoversindia.com/ gurgaon packers movers @ http://www.corporatemoversindia.com/ best packers and movers gurgaon @ http://www.corporatemoversindia.com/ local packers and movers gurgaon @ http://www.corporatemoversindia.com/ top 5 packers and movers in gurgaon @ http://www.corporatemoversindia.com/ packers and movers in gurgaon ncr @ http://www.corporatemoversindia.com/ mover and packer in gurgaon @ http://www.corporatemoversindia.com/ gurgaon movers packers @ http://www.corporatemoversindia.com/ packers and movers services in gurgaon @ http://www.corporatemoversindia.com/ movers and packers gurgaon reviews @ http://www.corporatemoversindia.com/ car transportation in gurgaon@ http://www.corporatemoversindia.com/ car movers@ http://www.corporatemoversindia.com/ office shifting services in gurgaon@ http://www.corporatemoversindia.com/ car move gurgaon to Bangalore@ http://www.corporatemoversindia.com/ car movers in gurgaon@ http://www.corporatemoversindia.com/ local shifting services in gurgaon@ http://www.corporatemoversindia.com/ house shifting in gurgaon@ http://www.corporatemoversindia.com/ relocation services in gurgaon@ http://www.corporatemoversindia.com/

We are amongst the most reputed companies in India providing you at your doorstep speedy, efficient, cost-effective and reliable movers packers services, relocation and related logistics services in different parts of the country. Our head office in Gurgaon, Corporate Office in Mumbai and branches in all major cities of India including Bangalore, hyrabad, Chennai, Kolkata, Guwahati, Nagpur, Ahmedabad, Surat, Noida, Faridabad, Punjab, Badodhra manages comprehensive packers and movers solutions to meet the transportation and relocation needs of our clients in different parts of country. Whether it’s a household move, office move or corporate relocation, we are packers and movers that focus on the customers’ needs.PLEASE CALL @ 9999167600,9711215215 Why Corporate Movers and Packers We provide an array of packers movers services ranging from Local Household Shifting, Residential & Commercial Relocation, Industrial Shifting, Freight Forwarding, Logistic Services, Car Carrier & Transportation, Truck Rentals, Warehousing and Storage services. • Our quality movers and packers services, transportation, logistics services are competitively priced, efficient and flexible to best suit the needs of our valued customers. • We use the latest technology, highly efficient workforce, competitive price and good quality packing material to give you best, safe and secure your goods and our services at your door step. • We operate huge warehousing facilities at competitive price. • We are a nation wide packing moving company offering Domestic and International Packers and Movers Services that looks forward to maintain highest standards and cater to customers' total satisfaction.

link

answered 03 Oct '15, 14:53

kprem's gravatar image

0★kprem
-39
accept rate: 0%

movers and packers gurgaon @ http://www.corporatemoversindia.com/ packers and movers gurgaon @ http://www.corporatemoversindia.com/ packers and movers in gurgaon @ http://www.corporatemoversindia.com/ packers movers gurgaon @ http://www.corporatemoversindia.com/ movers and packers in gurgaon @ http://www.corporatemoversindia.com/ packers movers in gurgaon @ http://www.corporatemoversindia.com/ packers & movers in gurgaon @ http://www.corporatemoversindia.com/ movers packers gurgaon @ http://www.corporatemoversindia.com/ packer and movers in gurgaon @ http://www.corporatemoversindia.com/ movers packers in gurgaon @ http://www.corporatemoversindia.com/ mover and packers in gurgaon @ http://www.corporatemoversindia.com/ packers and mover gurgaon @ http://www.corporatemoversindia.com/ gurgaon packers movers @ http://www.corporatemoversindia.com/ best packers and movers gurgaon @ http://www.corporatemoversindia.com/ local packers and movers gurgaon @ http://www.corporatemoversindia.com/ top 5 packers and movers in gurgaon @ http://www.corporatemoversindia.com/ packers and movers in gurgaon ncr @ http://www.corporatemoversindia.com/ mover and packer in gurgaon @ http://www.corporatemoversindia.com/ gurgaon movers packers @ http://www.corporatemoversindia.com/ packers and movers services in gurgaon @ http://www.corporatemoversindia.com/ movers and packers gurgaon reviews @ http://www.corporatemoversindia.com/ car transportation in gurgaon@ http://www.corporatemoversindia.com/ car movers@ http://www.corporatemoversindia.com/ office shifting services in gurgaon@ http://www.corporatemoversindia.com/ car move gurgaon to Bangalore@ http://www.corporatemoversindia.com/ car movers in gurgaon@ http://www.corporatemoversindia.com/ local shifting services in gurgaon@ http://www.corporatemoversindia.com/ house shifting in gurgaon@ http://www.corporatemoversindia.com/ relocation services in gurgaon@ http://www.corporatemoversindia.com/

We are amongst the most reputed companies in India providing you at your doorstep speedy, efficient, cost-effective and reliable movers packers services, relocation and related logistics services in different parts of the country. Our head office in Gurgaon, Corporate Office in Mumbai and branches in all major cities of India including Bangalore, hyrabad, Chennai, Kolkata, Guwahati, Nagpur, Ahmedabad, Surat, Noida, Faridabad, Punjab, Badodhra manages comprehensive packers and movers solutions to meet the transportation and relocation needs of our clients in different parts of country. Whether it’s a household move, office move or corporate relocation, we are packers and movers that focus on the customers’ needs.PLEASE CALL @ 9999167600,9711215215 Why Corporate Movers and Packers We provide an array of packers movers services ranging from Local Household Shifting, Residential & Commercial Relocation, Industrial Shifting, Freight Forwarding, Logistic Services, Car Carrier & Transportation, Truck Rentals, Warehousing and Storage services. • Our quality movers and packers services, transportation, logistics services are competitively priced, efficient and flexible to best suit the needs of our valued customers. • We use the latest technology, highly efficient workforce, competitive price and good quality packing material to give you best, safe and secure your goods and our services at your door step. • We operate huge warehousing facilities at competitive price. • We are a nation wide packing moving company offering Domestic and International Packers and Movers Services that looks forward to maintain highest standards and cater to customers' total satisfaction.

link

answered 03 Oct '15, 14:54

kprem's gravatar image

0★kprem
-39
accept rate: 0%

Packers And Movers Bangalore" prompt moving, relocation and shifting services for people and corporation moving to "Bengaluru" and round the India. For Movers Packers Bangalore city full target report on supply of revenue and effective Movers Packers in Bengaluru, contact today 08290173333. We include our network in major cities like Bangalore, Haridwar, Gurgaon, Chandigarh, Delhi NCR, Pune, Hyderabad, Chennai, Noida, Jaipur, Bhubaneswar, Mumbai, Lucknow, Patna, Bhopal, Ahmedabad and Kolkata.@ http://packersmoversbangalore.in/

Packers And Movers Bangalore to Chennai @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-chennai

Packers And Movers Bangalore to Indore @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-indore

Packers And Movers Bangalore to Madurai @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-madurai

Packers And Movers Bangalore to Cochin @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-cochin

Packers And Movers Bangalore to Ranchi @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-ranchi

Packers And Movers Bangalore to Surat @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-surat

Packers And Movers Bangalore to Raipur @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-raipur

Packers And Movers Bangalore to Thane @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-thane

Packers And Movers Bangalore to Sringar @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-srinagar

Packers And Movers Bangalore to Vishakhapatnam @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-vishakhapatnam

Packers And Movers Bangalore to Lucknow @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-lucknow

Packers And Movers Bangalore to Coimbatore @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-coimbatore

Packers And Movers Bangalore to Haridwar @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-haridwar

Packers And Movers Bangalore to Patna @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-patna

Packers And Movers Bangalore to Guntur @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-guntur

link

answered 18 Nov '17, 13:34

diksha12345's gravatar image

0★diksha12345
-213
accept rate: 0%

"Packers And Movers Gurgaon" prompt moving, relocation and shifting services for people and corporation moving to "Gurgaon" and round the India. For Movers Packers Gurgaon city full target report on supply of revenue and effective Movers Packers in Gurgaon, contact today 08290173333.There are many kinds of Packers and Movers Gurgaon reviews that you can see on the website so just go through all these reviews and you will be known to the fact that which kind of wok we do provide and you would feel comfortable with us or not.As many people have their own requirements and needs so it’s necessary that we do match to your needs and make it sure that everything is going according to you.

Packers and Movers In Gurgaon @ http://packers-and-movers-gurgaon.in/

Packers And Movers Yamuna Nagar @ http://packers-and-movers-gurgaon.in/packers-and-movers-yamuna-nagar-haryana

Packers And Movers Sonipat @ http://packers-and-movers-gurgaon.in/packers-and-movers-sonipat-haryana

Packers And Movers Sirsa @ http://packers-and-movers-gurgaon.in/packers-and-movers-sirsa-haryana

Packers And Movers Rohtak @ http://packers-and-movers-gurgaon.in/packers-and-movers-rohtak-haryana

Packers And Movers Rewari @ http://packers-and-movers-gurgaon.in/packers-and-movers-rewari-haryana

Packers And Movers Panipat @ http://packers-and-movers-gurgaon.in/packers-and-movers-panipat-haryana

Packers And Movers Jind @ http://packers-and-movers-gurgaon.in/packers-and-movers-jind-haryana

Packers And Movers Hisar @ http://packers-and-movers-gurgaon.in/packers-and-movers-hisar-haryana

Packers And Movers Bhiwani @ http://packers-and-movers-gurgaon.in/packers-and-movers-bhiwani-haryana

Packers And Movers Ambala @ http://packers-and-movers-gurgaon.in/packers-and-movers-ambala-haryana

Packers And Movers Gurgaon to Bangalore @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-bangalore

Packers And Movers Gurgaon to Ahmedabad @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-ahmedabad

Packers And Movers Gurgaon to Jaipur @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-jaipur

Packers And Movers Gurgaon to Delhi @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-delhi

Packers And Movers Gurgaon to Kolkata @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-kolkata

Packers And Movers Gurgaon to Chennai @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-chennai

Packers And Movers Gurgaon to Pune @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-pune

link

answered 13 Mar '18, 11:58

prenasharm's gravatar image

0★prenasharm
1
accept rate: 0%

Packers and Movers Indore - Call 09303355424, Local Household Shifting in Indore, Domestic Home Relocation from Indore. International Home Relocation from Indore, Office Shifting within Indore, Car and Bike Transportation from Indore, Safe Packing and Moving Services, Visit @ http://bit.ly/2zShGFR

link

answered 27 Dec '18, 08:03

manishpackers2's gravatar image

0★manishpackers2
1
accept rate: 0%

Packers and Movers Indore - Call 09303355424, Local Household Shifting in Indore, Domestic Home Relocation from Indore. International Home Relocation from Indore, Office Shifting within Indore, Car and Bike Transportation from Indore, Safe Packing and Moving Services, Packers and Movers Indore @ https://www.manishpackersmoversindore.in/ Packers and Movers Bangalore @ https://www.manishpackersmoversindore.in/packers-movers-bangalore.html Packers and Movers Gurgaon @ https://www.manishpackersmoversindore.in/packers-movers-gurgaon.html Packers and Movers Kolkata @ https://www.manishpackersmoversindore.in/packers-movers-kolkata.html Packers and Movers Mumbai @ https://www.manishpackersmoversindore.in/packers-movers-mumbai.html Packers and Movers Bhopal @ https://www.manishpackersmoversindore.in/packers-movers-bhopal.html Packers and Movers Chennai @ https://www.manishpackersmoversindore.in/packers-movers-chennai.html Packers and Movers Chandigarh @ https://www.manishpackersmoversindore.in/packers-movers-chandigarh.html Packers and Movers Delhi @ https://www.manishpackersmoversindore.in/packers-movers-delhi.html Packers and Movers Hyderabad @ https://www.manishpackersmoversindore.in/packers-movers-hyderabad.html Packers and Movers Jaipur @ https://www.manishpackersmoversindore.in/packers-movers-jaipur.html Packers and Movers Jodhpur @ https://www.manishpackersmoversindore.in/packers-movers-jodhpur.html Packers and Movers Jabalpur @ https://www.manishpackersmoversindore.in/packers-movers-jabalpur.html Packers and Movers Nagpur @ https://www.manishpackersmoversindore.in/packers-movers-nagpur.html Packers and Movers Raipur @ https://www.manishpackersmoversindore.in/packers-movers-raipur.html Packers and Movers Surat @ https://www.manishpackersmoversindore.in/packers-movers-surat.html Packers and Movers Udaipur @ https://www.manishpackersmoversindore.in/packers-movers-udaipur.html Packers and Movers Pune @ https://www.manishpackersmoversindore.in/packers-movers-pune.html Packers and Movers Ahmedabad @ https://www.manishpackersmoversindore.in/packers-movers-ahmedabad.html Packers and Movers Vadodara @ https://www.manishpackersmoversindore.in/packers-movers-vadodara.html Movers and Packers Indore @ https://www.manishpackersmoversindore.in/packers-and-movers-indore.html

link
This answer is marked "community wiki".

answered 27 Dec '18, 08:06

manishpackers2's gravatar image

0★manishpackers2
1
accept rate: 0%

Packers and Movers Indore - Call 09303355424, Local Household Shifting in Indore, Domestic Home Relocation from Indore. International Home Relocation from Indore, Office Shifting within Indore, Car and Bike Transportation from Indore, Safe Packing and Moving Services, Packers and Movers Indore @ https://goo.gl/NYfJYk Movers and Packers Indore @ http://bit.ly/2TclCKy Packers and Movers Gurgaon @ http://bit.ly/2TdMsl8 Packers and Movers Kolkata @ http://bit.ly/2OIdPAC Packers and Movers Mumbai @ http://bit.ly/2TbxP23 Packers and Movers Bhopal @ http://bit.ly/2K2IgRp Packers and Movers Chennai @ http://bit.ly/2T8KaDX Packers and Movers Chandigarh @ http://bit.ly/2PtCTQS Packers and Movers Delhi @ http://bit.ly/2PvnYFV Packers and Movers Jaipur @ http://bit.ly/2DDTkDQ Packers and Movers Jodhpur @ http://bit.ly/2zRNWJ5 Packers and Movers Jabalpur @ http://bit.ly/2K1ZAWC Packers and Movers Nagpur @ http://bit.ly/2zTXOBZ Packers and Movers Raipur @ http://bit.ly/2TcxtrH
Packers and Movers Surat @ http://bit.ly/2K2QIjo Packers and Movers Udaipur @ http://bit.ly/2OG4LMt Packers and Movers Pune @ http://bit.ly/2K2Wth5 Packers and Movers Ahmedabad @ http://bit.ly/2TcxxYt Packers and Movers Vadodara @ http://bit.ly/2PrhPdW
Packers and Movers Indore Blog @ http://bit.ly/2DBBh1b Packers and Movers Guwahati @ http://bit.ly/2QRzE2j

link

answered 27 Dec '18, 08:06

manishpackers2's gravatar image

0★manishpackers2
1
accept rate: 0%

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:

×729
×8
×2
×2

question asked: 02 Oct '15, 14:49

question was seen: 1,491 times

last updated: 27 Dec '18, 08:06