CodeChef is a non-commercial competitive programming community
Login
Username (New User? Signup) Password (Forgot Password?)
Signup
Login or
Signup with
Connect
Note
  • Publicize your achievements on your Facebook Wall.
  • Challenge your friends or ask them for help.

Site Navigation

  • PRACTICE
    • Easy
    • Medium
    • Hard
    • Challenge
    • Peer
  • COMPETE
    • February Long Contest
    • January CookOff
    • January Long Contest
  • DISCUSS
    • Wiki
    • Forums
    • Blog
    • Twitter
  • COMMUNITY
    • CodeChef Meetups
    • Campus Chapters
    • Host your Contest
    • User Groups
    • CodeChef TechTalks
    • All Educational Initiatives
    • Event Calendar
  • HELP
    • Frequently Asked Questions
    • FAQ for problem setters
    • Problem Setting
    • Ranks
    • Tutorials
  • ABOUT
    • About CodeChef
    • Team CodeChef
    • Press Room
    • CodeChef Financials
    • CodeChef Sponsorships
    • CEO's Corner
    • Contact Us
    • About Directi
Home » Practice(hard)
Try your hand at one of the practice
         problems, and submit your solution in the language of your choice
         (our judge accepts solutions in over 35+ languages). Receive points,
         and move up through the CodeChef ranks. Get better, and better prepare
         yourself for the competitions
  • Easy
  • Medium
  • Hard
  • Challenge
  • Peer
Name Code Successful Submissions Accuracy
Ordering the Soldiers ORDERS 137 6.19
Team Selection TEAMSEL 82 3.92
Some More Homework MARCHA6 30 29.03
Primes in the GCD table D4 26 9.32
XOR Rounds RESN02 24 17.3
The Guessing Game MARCHA3 21 15.44
Swapping mismatches C1 20 4.79
Divide and conquer F6 17 33.33
Travelling Salesman Again ! TSPAGAIN 13 65.96
Highways HIGH 13 15.96
Johny the farmer E3 12 12.88
Baking Cupcakes MUFFINS 12 12.37
Bytelandian Shoppers BYTESHOP 12 33.33
Congruent triangles H3 11 19.77
Permutation Jumping RESN03 11 52
Tidying Posters POSTERS 11 48.57
Haunted Maze HAUNTED 10 22.22
Reaching the Rig REACHRIG 9 4.96
Se7en F4 8 2.32
Buggy algorithm E5 8 57.14
Traffic jam N5 8 6.3
Milestones MSTONES 7 23.26
The Hungry Bear HBEAR 6 24.14
Pruning Trees PRUNING 6 58.62
Ski Resort SKIRES 6 23.53
Sines Sum Queries SINSUMQ 6 10.23
Backup Functions FUNCTION 6 25
Product of Digits DIGITS 6 8.26
Lights Out DORADM01 5 37.93
Sine Partition Function PARSIN 5 40
Reduce string STREDUC 5 6.96
Motorbike Racing M2 5 25
Adding Least Common Multiples LCM 5 8.11
Rearranging Digits ARRANGE2 4 6.48
Product of Digits Again DIGITS2 4 38.46
Genetics GENETICS 4 20.35
Renting Spare Oven Time OVENTIME 4 19.44
Coloring in Hypercube HPARITY 4 41.67
Graph Counting GRAPHCT 4 28.57
Magic Strings J5 4 17.65
D-Power Permutations DPOWPERM 4 12.9
Help the judge J6 4 36.67
Card Shuffle CARDSHUF 4 10.87
Short SHORT 3 59.09
Something About Divisors DIVISORS 3 15
Sum Divides Product PRDIVSUM 3 3.33
Exponentiation Commutativity EXPCOMM 3 16.67
The Mine Field M1 3 50
Ciel and Random Walk CIELWALK 3 10.71
The Bytelandian Union A8 3 5.17
The Reversed World REVERSED 3 12.2
Generalized Independent Sets GENIND 3 40
Alien language G4 3 7.69
Wildcard Matching L2 3 11.43
Preferred Cooking Schools CKSCHOOL 3 19.23
Alternating Permutations SNCK03 3 27.27
Chemical reactions G5 3 25
Misinterpretation 2 MISINT2 3 18.75
Place the balloon L5 2 16.67
Even Coefficients EVENPOLY 2 100
Attack of the Clones CLONES 2 20
A Christmas Pizza Puzzle A7 2 20
Powerful Strongholds SNCK02 2 28.57
Escape The Ruins ESCAPE 2 66.67
Heroes of Magical Might N2 2 66.67
Communicating Servers SERVERS 2 21.43
Buying Land BUYLAND 2 31.25
Minesweeper Reversed MINESREV 2 5.56
Effective Sets J4 2 6.06
Generalized Spanning Trees GST 2 11.11
Yet Another Sequence YASEQ 2 40
Box Packers INSOMB4 2 22.22
Hypertrees HYPER 2 40
Falling Snow INSOMB8 2 42.86
Lame Queen Game LAMQUGAM 2 21.43
Billboards BB 2 50
Packing the Boxes A5 2 6.67
Toll Trolls M4 2 22.22
Alien Clock D7 1 10
Lucky Days LUCKYDAY 1 5.56
Short II SHORT2 1 14.29
Get a Clue CLUE 1 50
Stepping Numbers STEPNUMS 1 2.38
Chef attic window WINDOW 1 9.68
Algebra Express ACMKANPE 1 16.67
Divisors number divisibility DIVNODIV 1 4.44
Counting Hexagons CNTHEX 1 20
Colored Domino Tilings and Cuts DOMNOCUT 1 20
Rush Hour RUSHHOUR 1 16.67
Overlapping discs M5 0 0
Post Office POST 0 0
Shortest Circuit Evaluation SHORTCIR 0 0
The Archipelago ARCHPLG 0 0
Traffic Jam ACMKANPC 0 0
Harmonious Decorating HARMONY 0 0
Problem With Strings ACMKANPA 0 0
Lighting the shop LIGHTING 0 0
Frosting Cupcakes MUFFINS2 0 0
Chefs Game CHEF_GAM 0 0

Directi Go for Gold

RECENT COMMENTS FOR THIS SECTION:

12:39 AM Feb 4th: henrykibiwott commented on Ordering the Soldiers: this code produces the exact requirement in my pc and in microsoft visual c++ 6.0,...
10:08 AM Jan 31st: maxstell commented on Primes in the GCD table: my program is running successfully in my desktop but giving 'Time limit exceeded' ...
01:15 PM Jan 26th: iamhashemi commented on Shortest Circuit Evaluation: Hi.Should we care about operators priority or not?
03:57 PM Jan 21st: voidhead commented on Rush Hour: >>>As an example, look at the figures below. The president's car is painted in yel...
12:06 PM Jan 20th: vijinpv commented on Ordering the Soldiers: I always get time limit exceeded error
12:34 AM Jan 19th: amankhan1991 commented on Ordering the Soldiers: My logic is undeniable :p the answer coming in slmost zero seconds . what more do ...
12:29 AM Jan 19th: amankhan1991 commented on Ordering the Soldiers: I, sure my solution should work and it is working ofr the sample program but it is...
05:23 PM Jan 18th: kriateive commented on Ordering the Soldiers: I used a simple insertion sort. Through i expected time limit exceeded, i keep on ...
10:17 AM Jan 15th: iamhashemi commented on Ordering the Soldiers: This question has a clear answer with O(n^2) . I use this solution for test. my so...
05:17 PM Jan 10th: iamhashemi commented on Reduce string: Hi. I use SemiDynamic method to solv problem. it is of order of n^2 * log(k) whe...
CodeChef is a global programming communityCodeChef hosts online programming competitions
CodeChef is a non-commercial competitive programming community
  • About CodeChef
  • About Directi
  • CEO's Corner
  • C-Programming
  • Programming Languages
  • Contact Us
© 2009 Directi Group. All Rights Reserved. CodeChef uses SPOJ © by Sphere Research Labs
In order to report copyright violations of any kind, send in an email to copyright@codechef.com
CodeChef a product of Directi
The time now is:
CodeChef - A Platform for Aspiring Programmers

CodeChef was created as a platform to help programmers make it big in the world of computer programming. At CodeChef we work hard to revive the geek in you by hosting programming contests on a monthly basis. We also aim to have training sessions and events related to online programming for programmers around the world. Apart from providing a platform for programming competitions, CodeChef also has various tutorials and forum discussions to help those who are new to the world of computer programming.

Practice Section - A Place to hone your 'Computer Programming Skills'

Try your hand at one of our many practice problems and submit your solution in a language of your choice. Our judge accepts solutions in over 35+ programming languages. Online programming was never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming competitions that take place through-out the month on CodeChef.

Compete - Monthly Programming Contests and Cook-offs

Here is where you can show off your computer programming skills. Take part in our 10 day long monthly programming contests and the shorter format Cook-off programming contests. Put yourself up for recognition and win great prizes. Prizes worth up to Rs.20,000 and $700 are up for grabs every month along with lots more CodeChef goodies.

Discuss

Are you new to computer programming? Do you need help with algorithms? Then be part of CodeChefs Forums and interact with all our programmers love helping out other programmers and share their ideas.

CodeChef Community

As part of our Educational initiative, we give institutes the opportunity to associate with CodeChef in the form of Campus Chapters. Hosting online programming competitions is not the only feature on CodeChef. Be a part of the CodeChef community through CodeChef meetups and techtalks. You can also host a programming contest for your institute on CodeChef and be a guest author on our blog.

Domain Name Registration, Web hosting, and Website Design provided by BigRock.com