You are not logged in. Please login at www.codechef.com to post your questions!

×

CHEFHACK WA

can u please give some inputs for which this code is giving WACODE

asked 15 Jan '13, 16:20

prakhs123's gravatar image

4★prakhs123
33641019
accept rate: 3%


Your Code gives time limit exceeds for N = 350 and each password = max prime no = 9999991 its ans must be 81410805000

link

answered 15 Jan '13, 16:28

suneetk92's gravatar image

3★suneetk92
816
accept rate: 0%

edited 15 Jan '13, 16:29

Hello,

Apart from the aforementioned issue, 2 must be considered as a prime number, not as an even one.

Also, odd numbers can't be prime either, make sure you are doing this check... These 2 details costed me several WA submissions before the AC one, even when sample input was correct...

Best regards,

Bruno

link

answered 15 Jan '13, 16:33

kuruma's gravatar image

3★kuruma
17.7k72143209
accept rate: 8%

edited 15 Jan '13, 16:35

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,070
×21

question asked: 15 Jan '13, 16:20

question was seen: 685 times

last updated: 15 Jan '13, 16:35