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

×

[closed] COOK40 AMIFIB Weak Test Cases !

I found this code and i can not understand how this code is working.
Its giving WA for this testcase
1
10256117644121029666
This number is not a Fibonacci Number but this code is showing YES for this.

asked 18 Nov '13, 00:43

shivam8789's gravatar image

2★shivam8789
31113
accept rate: 0%

edited 18 Nov '13, 14:30

admin's gravatar image

0★admin ♦♦
19.8k350498541

The question has been closed for the following reason "Duplicate Question" by admin 18 Nov '13, 00:54


In my opinion this solution will only work for numbers less than range of ULL. I am also confused how this can get AC. This would mean the test data had no input greater 1E19.

link

answered 18 Nov '13, 01:01

sikander_nsit's gravatar image

5★sikander_nsit
1.5k82130
accept rate: 0%

link

answered 18 Nov '13, 00:54

admin's gravatar image

0★admin ♦♦
19.8k350498541
accept rate: 36%

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:

×562
×161
×4

question asked: 18 Nov '13, 00:43

question was seen: 1,261 times

last updated: 18 Nov '13, 14:30