Answers for "codeforces - 570b python"

1

codeforces - 570b python

sizeOfRange,otherpick=map(int,input().split())
if(sizeOfRange==1 and otherpick==1):
    print(sizeOfRange)#1 number cant really fight can you
else:
    if(sizeOfRange/2<otherpick):
        print(otherpick-1)
    else:
        print(otherpick+1)
#so in a show of guessing the price of a object
#there is only 2 contestent
#price of the product 100
#first person says the price is 50 you just say its 50+1 or and you win
#you can say its 50-1
#either way its 50/50 chance of wining
Posted by: Guest on November-01-2020

Code answers related to "codeforces - 570b python"

Python Answers by Framework

Browse Popular Code Answers by Language