Please read the new rule regarding the restriction on the use of AI tools. ×

mustak1's blog

By mustak1, history, 5 years ago, In English

include <stdio.h>

int main() { long long n,k,j,i; scanf("%lld%lld",&n,&k); if(n%2==0) j=n/2; else j=n/2+1; if(k<=j) i=(k*2)-1; else i=(k-j)*2; printf("%lld\n",i); return 0; }

  • Vote: I like it
  • -11
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

In other words, hey guys gimme downvote pls.