Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
(C) Чет и нечет
yeskendir_sultanov
Apr 25th, 2024
142
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
Bitcoin
1 hour ago | 0.23 KB
BIP32
1 hour ago | 0.35 KB
config
Batch | 1 hour ago | 0.38 KB
config.py
1 hour ago | 0.37 KB
startup.lua
Lua | 5 hours ago | 0.33 KB
OoT rando seed 12/2
11 hours ago | 109.60 KB
Change your mindset
14 hours ago | 0.08 KB
Untitled
15 hours ago | 0.52 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!