Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
(C) Чет и нечет
yeskendir_sultanov
Apr 25th, 2024
200
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.16 KB
| Source Code
|
0
0
raw
download
clone
embed
print
report
n, k
=
map
(
int
, input
(
)
.
split
(
)
)
oddCount
=
(
n
+
1
)
// 2
evenCount
=
n
// 2
if
k
<=
oddCount
:
print
(
k
*
2
-
1
)
else
:
k
-
=
oddCount
print
(
k
*
2
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Cloud somersaults to his cave
11 min ago | 0.28 KB
Pine tree transformation
16 min ago | 0.86 KB
Mastered the art of cloud somersaulting, whic...
22 min ago | 0.69 KB
Free Technique
CSS | 22 min ago | 0.65 KB
Big $$$ Strategy
CSS | 22 min ago | 0.65 KB
12.OOO IN 2-DAY
CSS | 22 min ago | 0.65 KB
3 miles in half a day
38 min ago | 1.05 KB
72
41 min ago | 0.81 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!