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(medium)
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
Bytelandian gold coins COINS 1621 12.53
Prime Generator PRIME1 880 10.94
Marbles MARBLES 698 19.55
Array Transform ARRAYTRM 407 24.16
The Next Palindrome PALIN 378 7.71
Stepford Houses INSOMA3 359 17.69
Mixtures MIXTURES 228 22.42
Flipping Coins FLIPCOIN 212 8.6
Play on Words WORDS1 147 9.54
Pouring water POUR1 140 15.11
The Rise and Fall of Power MARCHA4 126 4.87
Money Matters MONEY 110 13.7
Buttons BUTTONS 101 7.81
XAndOr INSOMA5 82 30.69
Name Chopping INSOMA4 64 18.34
Multiples of 3 MULTQ3 51 5.86
Adding Fractions ADDFRAC 51 14.99
The Sports Stadium STADIUM 46 17.98
Stable Marriage Problem STABLEMP 45 24.17
Domain Dilemma DDILEMMA 45 9.67
AND Rounds RESN01 42 15.14
Rotate the String ROTSTRNG 38 9.98
Sphere in a tetrahedron TETRA 37 54.17
Pleasing Chief CHIEFETT 37 21.83
The LCS Problem Revisited J2 36 26.05
Collect the Chocolate Chips TKCHOCS 35 36.13
Help the soldier SOLDIER 33 14.7
Squirrel and chestnut SQUIRREL 33 14.38
Monitoring Madness MMADNESS 30 7.43
Tautology TAUT 26 34.11
Angry Chef - Crispy Chips KCHIPS 24 23.26
Preparing Dishes PREPARE 24 22.5
Ciel and Quiz Game CIELQUIZ 22 20.16
Zeta-Nim Game TAKEAWAY 20 45.28
Squash the Bugs B5 20 14.06
The Matrix Game SNCK01 20 28.72
Logging Game LOGGERS 20 50
Sum of numbers NUMSUM 20 2.04
Birthday Gift CHEFGIFT 19 27.35
Ripple-Carry Adder RIPPLE 18 20.18
The N Queens Puzzle Revisited J3 18 40
Bonus ACMKANPB 18 13.92
Fetching Cooking Tools TOOLS 18 28.57
Just a simple sum H4 16 8.49
The Traveling Photographer PHOTOS 15 29.69
Grouping Chefs GROUPING 15 20
Colorful Chain COLCHAIN 15 32.2
New Restaurant NEWREST 15 25.81
N Knights Problem KNIGHTS 15 33.33
K-Unique Sequence KUNIQUE 14 24.39
Kayaks H2 14 15.27
Bombing BOMBING 13 14.29
Chess Pushing Game CHESSGM 13 37.78
Soccer League M3 13 13.08
Longest Arithmetic Progressions ARITHPR 13 23.08
Choosing Cook Off Problems COOKOFF 12 21.31
Ciel and Eggs STREGGS 12 32.05
Repeated String REPSTR 11 27.78
Ciel and Battle Arena CIELBTL 11 40.91
Mean Mean Medians MEANMEDI 11 23.96
Quadratic Equations E4 10 16.67
Palindrome Palindrome PALIPALI 10 13.51
The Grand Cook Off COOKOFF2 10 36.11
Target Practice TARPRACT 10 14.1
SudokuX J1 9 19.23
Lights Off E2 8 38.1
Graph on a Plane GRAPLANE 8 23.53
Newspaper Puzzle PUZZLES 8 36.36
Closest Ranking VOTING 7 32.14
First non-Palindrome NONPALIN 7 25
Integer Sequences SEQUENCE 7 31.82
A Bowling Game G1 7 30.77
Head office building BUILDING 7 21.62
A Coin Game G3 7 18.42
Restock RESTOCK 7 38.3
The Postal Service POSTAL 7 26.67
Remys last tour FALLDOWN 7 32.26
Robot Game TR2 6 25.64
The Lucky Draw D2 6 5.47
Trees Again TREES 6 22.58
An interesting subsequence C5 6 4.55
Maze of Digits K3 6 71.79
Balanced Walks BALANCED 6 57.14
Lucky Sum LUCKY3 6 42.11
Wireless Network NETWORK 6 28.57
The powerful sum C2 6 5.16
Dinner Party Socializing SOCIAL 6 20
Time of collisions COLLTIME 6 10.53
The Perfect Chocolate Candy CANDY 6 22.22
Bytelandian Robots F2 6 22.58
Squares Game SQUAGAME 6 14.81
Battleship V B3 6 14.29
The Cursed Room MMATCH 6 21.21
Glass Measurement GLASS 5 17.74
Paragraph Formatting H5 5 17.24
Restaurant Expansion RESTEXP 5 35
Menu MENU 5 17.24
K-important Strings N3 5 17.86
Odd Binomial Coefficients ODDBIN 5 40
Dance Floor Energy ENERGY 5 38.89
Moving between Floors FLOORSMV 5 30.77
Two Chefs TWOCHEFS 5 20
Magic sequence F5 4 40
Cutting off Squares CUTSQRS 4 41.67
The battlefield D3 4 57.14
Gap Filler Game GAPFILL 4 36.36
Smart Frog G2 4 4.95
Prime words C3 4 10.91
Chefs Bad Day GRIDCHEF 4 71.43
Buying Candies BUYING 4 7.84
Curry Stained Napkin F3 4 50
Circle of towers L4 4 27.63
Best Sums BESTSUM 3 0.4
Primary Proposal PROPOSAL 3 50
Spaghetti Monsters B1 3 12
Super Factor Sum FACTSUM 3 3.25
Cell Phone Towers L1 3 2.59
Exit code ECODE 3 2.8
Fossil in the Ice TFOSS 3 2.53
Sinking Time DCE01 3 23.81
Seeding The Pattern SEEDS 2 12.5
Permute Digits PERMDIG 2 14.29
Icing Crowns CROWNS 2 25
I for Insomnia INSOMB3 2 6.9
Relevant Phrases of Annihilation PHRASES 2 2.13
Swarm of Polygons SWARM 2 10.53
The Baking Business BAKE 2 15.79
Happy Days HAPPY 2 6.67
Counting Terms TERM 2 11.11
Trial of Doom YALOP 1 12.5
Summing Slopes SUMSLOPE 1 0.89
Block Drop BLOCKDRO 0 0

Directi Go for Gold

RECENT COMMENTS FOR THIS SECTION:

12:10 AM Feb 3rd: vivek17geek commented on Money Matters: can anyone tell me the output for n=32767 ?
11:19 PM Jan 31st: tru3liar commented on The Next Palindrome: Calling sprintf results in SIGSEGV? If yes, then how to fix it?
10:31 PM Jan 30th: a1_3 commented on Name Chopping: What is the output for APJQ, APJRS, APJRT? Is it APJR or is it APJ?
12:39 PM Jan 30th: a1_3 commented on Name Chopping: Can the characters in the initial list be between a-z or are they strictly upperca...
11:06 PM Jan 28th: ankit0311 commented on Array Transform: Can anyone please answer my query in the following thread in the discussion forum?...
11:03 AM Jan 27th: harithag0_0 commented on Block Drop: Does the time limit of 5 seconds imply that each test input file be solved with in...
07:41 AM Jan 24th: prosho commented on Bytelandian gold coins: I think CodeChef's system test is worse than CodeForces's. It is because the submi...
09:28 PM Jan 22nd: anthraxwar commented on Bytelandian gold coins: can someone make a tutorial for this problem hence it is popular and rather small ...
05:31 PM Jan 22nd: dandy commented on Prime Generator: Well, I am tired and disappointed. I've submitted several times and I am always ge...
11:36 PM Jan 21st: twamilton commented on Buttons: My output is exactly the same as @tranquility, though I am getting a WA
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