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

×

Weak test cases in HP18(LUCKY NUMBER GAME) in JAN19B..

In January challenge, In lucky number game, In subtask 1 i.e a=b I have just printed the result i.e "BOB" but in case if there are no numbers in the given test case i.e (any number) divisible by 'a' then the result will be "ALICE". Hence we can say that the test cases are weak

asked 14 Jan, 16:51

harsha_man's gravatar image

4★harsha_man
193
accept rate: 0%

edited 14 Jan, 16:53


I guess we need to focus on the term "finite number of turns", which is clearly mentioned in the question. I guess by this they meant that at least one turn is played , i.e., there is at least one number which is divisible by a. Hence, BOB is the winner in subtask 1 when a=b.

link

answered 14 Jan, 17:00

akash19jain's gravatar image

3★akash19jain
1377
accept rate: 10%

Finite means 0 is also included

(14 Jan, 17:02) harsha_man4★

How can you be so sure? I have read at some websites where it says that finite is a non zero number. Anyways I guess the author is the only one who can answer this question. @vijju123 @mgch @admin

(14 Jan, 17:09) akash19jain3★

I have also seen in some websites saying that zero is finite.according to you if zero is not finite then it should be infinite right? Just think of it

(14 Jan, 17:19) harsha_man4★

In that case what about negative numbers?? Are they infinte or finite. Also according to me finite moves here means atleast one move. Lets wait for the author to answer this question.

(14 Jan, 18:14) akash19jain3★

I think 0 is a finite number. Because a finite number is a number that has a number greater than and smaller than that. Finite basically means bounded. So, I think 0 is a finite number. This definition also solves the negative number question.

link

answered 14 Jan, 18:50

deadcool's gravatar image

3★deadcool
0
accept rate: 0%

Yes 0 is a finite number

(14 Jan, 21:07) harsha_man4★
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,427
×161

question asked: 14 Jan, 16:51

question was seen: 274 times

last updated: 14 Jan, 21:07