Test case 1

Failed (The output results are wrong)

time:0.11 sec

Test case 2

Failed (The test has been skipped)

Test case 3

Failed (The test has been skipped)

※ All the test cases will be run from the first one in order. If your program does not pass one test case, no further test cases will be carried out (knockout format).


0 points Out of 100 points

I was relegated to the deadwood..

Img 03 05

Mr. mokemokechicken, in some ways this code is just amazing. As a new programmer, I could never write code like this…

Language Python2
Execution speed Invalid
*Tast case 1
Python2fastest record 0.08 sec
*Test case 1
Python2submitted count 2519
(2014/01/09 updated)

Rank e

Your skills match the E paiza rank. Please try harder to write code containing no mistakes.

What is paiza online hackathon?

paiza online hackathon is Free Join. In this event, all participants will solve the problem of programming one. And compete for execution speed, and each other to share the excellent code.

The new lady programmer, Ms. Noda, has been assigned to your team. Improve her code so that it's better than what she's written already. Write more efficient code to show your skills as a programmer and fora chance to be promoted.

Use your favorite language (Java, C, C++, C#, PHP, Ruby, Python, Perl) to implement an efficient program.

Your submitted code will be run through multiple tests cases, and the number of correct answers and your code’s execution speed will be recorded to assign you a score.

  • This is a problem open to everyone so it does not have a time limit.
  • The same person can try solving this problem multiple times.
  • You are also welcome to write solutions on blogs, etc.
Get a high score and tell your friends!

paiza online hackathon is Free Join.
Let's aim for the fastest code!

View problem details

Top of page