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

×

Logic to this question?

What could possibly be the logic to this question? http://codeforces.com/contest/784/problem/A

asked 23 Jan '18, 13:25

kunal12's gravatar image

3★kunal12
445
accept rate: 0%


I tried the same problem yesterday. I too was baffled after trying for a while!
Then I read the tutorial and it said that traditionally first problem in such contest is about googling out the answer. If you google the title of the problem you might find some paper and then it is simply copying the sequence.
Here's the tutorial : LINK. It can explain you much more than I do so please have a look!
Happy fooling around xD

link

answered 23 Jan '18, 13:53

dishant_18's gravatar image

4★dishant_18
61419
accept rate: 12%

But how could number 3 could give 27 then, and how could number 1 can give 4 when 1 doesn't have any prime factor...

(23 Jan '18, 15:47) kunal123★

1 and 3 just denote the position ie 1st such number or 3rd such number.

4 is the first number which has that property

(23 Jan '18, 16:48) vivek_19982996★

oh okay...this question's logic was something i could have never come across if i had not asked on the forum.

(23 Jan '18, 17:00) kunal123★
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:

×688

question asked: 23 Jan '18, 13:25

question was seen: 221 times

last updated: 23 Jan '18, 17:00