CodeChef: June 2009 (Contest IV)
Site under maintenance
  • Register
  • Forgot Password?
  • PRACTICE
    • Easy
    • Medium
    • Hard
  • COMPETE
    • August Mini Challenge
    • August Algorithm Challenge
    • July Algorithm Challenge
    • June Algorithm Challenge
    • May Gamers Challenge
  • DISCUSS
    • Forums
    • Blog
    • Twitter
  • COMMUNITY
    • CodeChef TechTalks
    • CodeChef Meetups
    • Campus Chapters
    • Host Your Contest
    • User Groups
  • HELP
    • Frequently Asked Questions
    • FAQ for Problem Setters
    • Tutorial: Paying Up
    • Tutorial: Small Factorials
    • Tutorial: Input and Output(I/O)
    • Tutorial: Your First Non-Trivial Problem
  • ABOUT
    • About CodeChef
    • About Directi
    • CEO's Corner
    • Press Room
    • Careers
Array ( [0] => Array ( [problemid] => 4335 [userid] => 1761 [status] => 15 [error_id] => 0 [uname] => Ajay Somani [login] => innocentboy [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-11 12:47:41 [memory] => 4728 [time] => 0.12 [id] => 38613 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.460105 [lp] => 1 ) [1] => Array ( [problemid] => 4335 [userid] => 6381 [status] => 15 [error_id] => 0 [uname] => Frank Rodriguez [login] => frank44 [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-11 13:32:18 [memory] => 2848 [time] => 4.88 [id] => 38663 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.458886 [lp] => 2 ) [2] => Array ( [problemid] => 4335 [userid] => 5973 [status] => 15 [error_id] => 0 [uname] => Erjin Zhou [login] => zhouerjin [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-07 07:34:51 [memory] => 4264 [time] => 1.52 [id] => 35740 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.42404 [lp] => 3 ) [3] => Array ( [problemid] => 4335 [userid] => 3256 [status] => 15 [error_id] => 0 [uname] => Prunthaban K [login] => prunthaban [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-11 12:06:43 [memory] => 3780 [time] => 0.21 [id] => 38569 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.415587 [lp] => 4 ) [4] => Array ( [problemid] => 4335 [userid] => 2793 [status] => 15 [error_id] => 0 [uname] => Tanaeem [login] => tanaeem [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-06 14:28:57 [memory] => 9576 [time] => 3.09 [id] => 35340 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.401966 [lp] => 5 ) [5] => Array ( [problemid] => 4335 [userid] => 6083 [status] => 15 [error_id] => 0 [uname] => Balakrishnan Varadarajan [login] => balakrishnan_v [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-10 06:50:17 [memory] => 3552 [time] => 2.69 [id] => 37666 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.392709 [lp] => 6 ) [6] => Array ( [problemid] => 4335 [userid] => 1539 [status] => 15 [error_id] => 0 [uname] => Keshav Dhandhania [login] => keshav_57 [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-10 23:39:58 [memory] => 2892 [time] => 0.22 [id] => 38116 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.380797 [lp] => 7 ) [7] => Array ( [problemid] => 4335 [userid] => 4168 [status] => 15 [error_id] => 0 [uname] => Aniruddha [login] => i0exception [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-09 21:02:32 [memory] => 3164 [time] => 0.19 [id] => 37268 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.379843 [lp] => 8 ) [8] => Array ( [problemid] => 4335 [userid] => 1143 [status] => 15 [error_id] => 0 [uname] => Varun Jalan [login] => syco [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-11 13:23:27 [memory] => 3136 [time] => 0.12 [id] => 38646 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.302486 [lp] => 9 ) [9] => Array ( [problemid] => 4335 [userid] => 6283 [status] => 15 [error_id] => 0 [uname] => Pritam Damania [login] => blackpearl [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-07 12:52:43 [memory] => 2684 [time] => 4.96 [id] => 35856 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.294647 [lp] => 10 ) [10] => Array ( [problemid] => 4335 [userid] => 1410 [status] => 15 [error_id] => 0 [uname] => Yash [login] => naughty [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-11 03:21:53 [memory] => 2828 [time] => 2.01 [id] => 38324 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.260136 [lp] => 11 ) [11] => Array ( [problemid] => 4335 [userid] => 1609 [status] => 15 [error_id] => 0 [uname] => Nadeem Moidu [login] => nadeemoidu [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-10 17:07:57 [memory] => 3072 [time] => 0.14 [id] => 37875 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.115005 [lp] => 12 ) [12] => Array ( [problemid] => 4335 [userid] => 1321 [status] => 15 [error_id] => 0 [uname] => Sanket Shah [login] => sanky29288 [src] => 0 [status_desc] => [compiler] => C++ 4.0.0-8 [date] => 2009-06-09 13:31:40 [memory] => 2652 [time] => 0.10 [id] => 36937 [chk_id] => 0 [pname] => Pack the balls in a box! [signal] => 0 [type] => 2 [score] => 0.085016 [lp] => 13 ) )

Home » Compete » June 2009 (Contest IV) » » Submissions

Pack the balls in a box! statistics & best solutions

Users accepted Submissions Accepted Wrong Answer Compile Error Runtime Error Time Limit Exceeded
13 913 425 384 13 42 49

All C C99 strict C++ 4.0.0-8 PAS gpc PAS fpc JAVA NICE JAR C# NEM ST ASM D FORT ADA BASH PERL PYTH RUBY LUA ICON PIKE PHP SCM guile SCM qobi LISP sbcl LISP clisp HASK CAML CLPS PRLG WSPC BF ICK TEXT JS
Rank Date UserResult Time Mem Lang
1 2009-06-11 12:47:41 Ajay Somani
0.460105
0.12 4.6M C++
4.0.0-8
2 2009-06-11 13:32:18 Frank Rodriguez
0.458886
4.88 2.8M C++
4.0.0-8
3 2009-06-07 07:34:51 Erjin Zhou
0.42404
1.52 4.2M C++
4.0.0-8
4 2009-06-11 12:06:43 Prunthaban K
0.415587
0.21 3.7M C++
4.0.0-8
5 2009-06-06 14:28:57 Tanaeem
0.401966
3.09 9.4M C++
4.0.0-8
6 2009-06-10 06:50:17 Balakrishnan Varadarajan
0.392709
2.69 3.5M C++
4.0.0-8
7 2009-06-10 23:39:58 Keshav Dhandhania
0.380797
0.22 2.8M C++
4.0.0-8
8 2009-06-09 21:02:32 Aniruddha
0.379843
0.19 3.1M C++
4.0.0-8
9 2009-06-11 13:23:27 Varun Jalan
0.302486
0.12 3.1M C++
4.0.0-8
10 2009-06-07 12:52:43 Pritam Damania
0.294647
4.96 2.6M C++
4.0.0-8
11 2009-06-11 03:21:53 Yash
0.260136
2.01 2.8M C++
4.0.0-8
12 2009-06-10 17:07:57 Nadeem Moidu
0.115005
0.14 3.0M C++
4.0.0-8
13 2009-06-09 13:31:40 Sanket Shah
0.085016
0.10 2.6M C++
4.0.0-8

RECENT ACTIVITY

User Mem Time Lang
Ajay Somani 4.6M 0.12 C++
4.0.0-8
View Solution
Frank Rodriguez 2.8M 4.88 C++
4.0.0-8
View Solution
Erjin Zhou 4.2M 1.52 C++
4.0.0-8
View Solution
Prunthaban K 3.7M 0.21 C++
4.0.0-8
View Solution
Tanaeem 9.4M 3.09 C++
4.0.0-8
View Solution
Balakrishnan Varadarajan 3.5M 2.69 C++
4.0.0-8
View Solution
Keshav Dhandhania 2.8M 0.22 C++
4.0.0-8
View Solution
Aniruddha 3.1M 0.19 C++
4.0.0-8
View Solution
Varun Jalan 3.1M 0.12 C++
4.0.0-8
View Solution
Pritam Damania 2.6M 4.96 C++
4.0.0-8
View Solution
Yash 2.8M 2.01 C++
4.0.0-8
View Solution
Nadeem Moidu 3.0M 0.14 C++
4.0.0-8
View Solution
Sanket Shah 2.6M 0.10 C++
4.0.0-8
View Solution
Date/Time User Lang
Result
2009-06-11 12:47:41 Ajay Somani C++
4.0.0-8

0.460105
2009-06-11 13:32:18 Frank Rodriguez C++
4.0.0-8

0.458886
2009-06-07 07:34:51 Erjin Zhou C++
4.0.0-8

0.42404
2009-06-11 12:06:43 Prunthaban K C++
4.0.0-8

0.415587
2009-06-06 14:28:57 Tanaeem C++
4.0.0-8

0.401966
2009-06-10 06:50:17 Balakrishnan... C++
4.0.0-8

0.392709
2009-06-10 23:39:58 Keshav Dhand... C++
4.0.0-8

0.380797
2009-06-09 21:02:32 Aniruddha C++
4.0.0-8

0.379843
2009-06-11 13:23:27 Varun Jalan C++
4.0.0-8

0.302486
2009-06-07 12:52:43 Pritam Damania C++
4.0.0-8

0.294647
2009-06-11 03:21:53 Yash C++
4.0.0-8

0.260136
2009-06-10 17:07:57 Nadeem Moidu C++
4.0.0-8

0.115005
2009-06-09 13:31:40 Sanket Shah C++
4.0.0-8

0.085016
Date/Time User Lang
Result
2009-06-11 12:47:41 Ajay Somani C++
4.0.0-8

0.460105
2009-06-11 13:32:18 Frank Rod... C++
4.0.0-8

0.458886
2009-06-07 07:34:51 Erjin Zhou C++
4.0.0-8

0.42404
2009-06-11 12:06:43 Prunthaban K C++
4.0.0-8

0.415587
2009-06-06 14:28:57 Tanaeem C++
4.0.0-8

0.401966
2009-06-10 06:50:17 Balakrish... C++
4.0.0-8

0.392709
2009-06-10 23:39:58 Keshav Dh... C++
4.0.0-8

0.380797
2009-06-09 21:02:32 Aniruddha C++
4.0.0-8

0.379843
2009-06-11 13:23:27 Varun Jalan C++
4.0.0-8

0.302486
2009-06-07 12:52:43 Pritam Da... C++
4.0.0-8

0.294647
2009-06-11 03:21:53 Yash C++
4.0.0-8

0.260136
2009-06-10 17:07:57 Nadeem Moidu C++
4.0.0-8

0.115005
2009-06-09 13:31:40 Sanket Shah C++
4.0.0-8

0.085016
Date/Time User Lang
Result
2009-06-11 12:47:41 Ajay Somani C++
4.0.0-8

0.460105
2009-06-11 13:32:18 Frank Rodr... C++
4.0.0-8

0.458886
2009-06-07 07:34:51 Erjin Zhou C++
4.0.0-8

0.42404
2009-06-11 12:06:43 Prunthaban K C++
4.0.0-8

0.415587
2009-06-06 14:28:57 Tanaeem C++
4.0.0-8

0.401966
2009-06-10 06:50:17 Balakrishn... C++
4.0.0-8

0.392709
2009-06-10 23:39:58 Keshav Dha... C++
4.0.0-8

0.380797
2009-06-09 21:02:32 Aniruddha C++
4.0.0-8

0.379843
2009-06-11 13:23:27 Varun Jalan C++
4.0.0-8

0.302486
2009-06-07 12:52:43 Pritam Dam... C++
4.0.0-8

0.294647
2009-06-11 03:21:53 Yash C++
4.0.0-8

0.260136
2009-06-10 17:07:57 Nadeem Moidu C++
4.0.0-8

0.115005
2009-06-09 13:31:40 Sanket Shah C++
4.0.0-8

0.085016
Date/Time User Lang
Result
2009-06-11 12:47:41 Ajay Somani C++
4.0.0-8

0.460105
2009-06-11 13:32:18 Frank Rodriguez C++
4.0.0-8

0.458886
2009-06-07 07:34:51 Erjin Zhou C++
4.0.0-8

0.42404
2009-06-11 12:06:43 Prunthaban K C++
4.0.0-8

0.415587
2009-06-06 14:28:57 Tanaeem C++
4.0.0-8

0.401966
2009-06-10 06:50:17 Balakrishnan... C++
4.0.0-8

0.392709
2009-06-10 23:39:58 Keshav Dhand... C++
4.0.0-8

0.380797
2009-06-09 21:02:32 Aniruddha C++
4.0.0-8

0.379843
2009-06-11 13:23:27 Varun Jalan C++
4.0.0-8

0.302486
2009-06-07 12:52:43 Pritam Damania C++
4.0.0-8

0.294647
2009-06-11 03:21:53 Yash C++
4.0.0-8

0.260136
2009-06-10 17:07:57 Nadeem Moidu C++
4.0.0-8

0.115005
2009-06-09 13:31:40 Sanket Shah C++
4.0.0-8

0.085016

HELP

Program should read from standard input and write to standard output.

After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Below are the possible results:

  • Accepted Your program ran successfully and gave a correct answer. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark.
  • Time Limit Exceeded Your program was compiled successfully, but it didn't stop before time limit. Try optimizing your approach.
  • Wrong Answer Your program compiled and ran succesfully but the output did not match the expected output.
  • Runtime Error Your code compiled and ran but encountered an error. The most common reasons are using too much memory or dividing by zero. For the specific error codes see the help section.
  • Compilation Error Your code was unable to compile. When you see this icon, click on it for more information.

If you are still having problems, see a sample solution here.

  • About CodeChef
  • About Directi
  • CEO's Corner
  • Careers
  • feedback@codechef.com

© 2009 Directi Group. All Rights Reserved. CodeChef uses SPOJ © by Sphere Research Labs

Sponsors
The time now is: