CodeChef Logo CodeChef Logo
Courses

Programming and DSA

Learn to think like a programmer. Develop your problem-solving skills with essential data structures and algorithms.

Career Paths

From beginner to job-ready. Explore our curated career paths designed to help you succeed in the tech industry.

Other Courses

Programming and DSA

Explore courses

Catalogue

Programming and DSA

Learn to think like a programmer. Develop your problem-solving skills with essential data structures and algorithms.

Career Paths

From beginner to job-ready. Explore our curated career paths designed to help you succeed in the tech industry.

Other Courses

Explore courses
Practice Compete Compiler
Upgrade to Pro
Courses

Programming and DSA

Learn to think like a programmer. Develop your problem-solving skills with essential data structures and algorithms.

Career Paths

From beginner to job-ready. Explore our curated career paths designed to help you succeed in the tech industry.

Other Courses

Programming and DSA

Explore courses

Catalogue

Programming and DSA

Learn to think like a programmer. Develop your problem-solving skills with essential data structures and algorithms.

Career Paths

From beginner to job-ready. Explore our curated career paths designed to help you succeed in the tech industry.

Other Courses

Explore courses
Practice Compete Compiler
Home » Wiki » June 2012 Contest Problem Editorials

June 2012 Contest Problem Editorials

Problem Tester for the contest was Anton Lunyov.

LECANDY (written by Vitaliy Herasymiv). The Editorials can be found here.

LUCKY8 (written by Vitaliy Herasymiv). The Editorials can be found here.

PARPOLY (written by Hiroto Sekido). The Editorials can be found here.

CAKEDOOM (written by Kaushik Iska). The Editorials can be found here.

RESQ (written by Namit Shetty). The Editorials can be found here.

COOLNUM (written by IstvanNagy). The Editorials can be found here.

CLOSEST (written by Shilp Gupta). The Editorials can be found here.

FLY (written by Namit Shetty). The Editorials can be found here.

HULL (written by Shanjingbo). The Editorials can be found here.

MATCH (written by Shanjingbo). The Editorials can be found here.

@mrunique_01: You will read

nam_adm @ 11 Jun 2012 06:15 PM
@mrunique_01: You will read in the editorials that there is an elegant way to solve the problem in C/C++ WITHOUT using Big Decimal. Secondly, you will occasionally come across such problems that require BigInt/BigDecimal libraries - and given the span of 10 days - you can implement your own BigInteger class/structure/template in the programming language of your choice - and reuse them in the future as well !

This has been told infinite

3★ridder @ 11 Jun 2012 08:12 PM
This has been told infinite times....for a given test case the time limit must be less than 0.09 sec. what you get is sum of time taken on all the test cases.

@success your fors all go

6★bcurcio @ 12 Jun 2012 01:38 AM
@success your fors all go from 0 to N. Also, you don't use the breaks the tester uses. I think that's the reason for TLE

@kuruma I'm not an admin. But

6★bcurcio @ 12 Jun 2012 02:14 AM
@kuruma I'm not an admin. But I checked your code and the problem is that you use double for a problem that requires integer output. Check with N= 99998004 or 99997999

^ Just remove the contest

4★dtb_ @ 12 Jun 2012 10:09 AM
^ Just remove the contest name from the address eg http://www.codechef.com/problems/LUCKY8/ for http://www.codechef.com/JUNE12/problems/LUCKY8/

yes the answer for 2 ??1?

5★shredder @ 12 Jun 2012 11:15 AM
yes the answer for 2 ??1? is 1010

thanks for reply...but i have

2★siddharth10246 @ 13 Jun 2012 08:45 PM
thanks for reply...but i have calculated the ans for virtually all cases i can think off and then checked my ans. Now as the contest is over can i get some tricky test cases for this question...or the test file...
Workden, MNR PRIDE, 14, HAL Old Airport Rd, Domlur I Stage, 1st Stage, DOMLUR, Bengaluru, Karnataka 560071 [email protected] +91 95911 47880
Find us online

ROADMAPS

Learn Python
Learn Java
Learn C
Learn C++
Data structures and Algorithms
Competitive Programming
More Roadmaps

CAREER PATHS

React JS Developer
Full stack Developer
SQL for Data Analysis
Frontend Developer
Java Backend Developer
Data Analysis using Python
Python Backend Developer
C++ Developer
Machine Learning using Python

COMPILERS

HTML online compiler
C++ online compiler
C online compiler
Java online compiler
Python online compiler
SQL online compiler
JavaScript online compiler
React online compiler
More compilers

COMPANY

About us
For colleges
Coding Contests
Blogs
Contact us
Privacy Policy
Frequently Asked Questions

© 2025 CodeChef Inc. All rights reserved.

We use cookies to improve your experience and for analytical purposes. Read our Privacy Policy and Terms to know more. You consent to our cookies if you continue to use our website.