Problem link:

link text

My solution: http://paste.ubuntu.com/24909893/

ভুলটা কোথায় করছি বুঝতে পারছি না।লজিক এ কিছু মিস করছি

asked 20 Jun '17, 18:33

Shaeekh's gravatar image

Shaeekh
867

1

If you explain your logic a bit then it is easy to understand.

(20 Jun '17, 20:27) shayokh

এই কেস দেখুন:

ইনপুট:

3
5 10 15

সঠিক আউটপুট:

Yes

আপনার কোডের আউটপুট:

No

ভুলের কারণ হচ্ছে

(a[n-1]%a[i]==0) && (((a[n-1]%a[i])%2==0) ||  ((a[n-1]%a[i])%3==0))
permanent link

answered 06 Jul '17, 16:59

mahrahat's gravatar image

mahrahat
8727

Your answer
toggle 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

Question tags:

×54
×7
×4

question asked: 20 Jun '17, 18:33

question was seen: 504 times

last updated: 06 Jul '17, 16:59