Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Toph-Count the Odds
rahat62
Jan 31st, 2019
186
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int
main
(
)
{
int
m
,
n
,
count
=
0
;
scanf
(
"%d %d"
,&
m
,&
n
)
;
if
(
n
%
2
==
0
&&
m
%
2
==
0
)
{
count
=
(
(
n
-
m
)
/
2
)
;
}
else
count
=
(
(
n
-
m
)
/
2
)
+
1
;
printf
(
"%d
\n
"
,
count
)
;
return
0
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 5.92 KB
Untitled
3 hours ago | 5.87 KB
Connect 4 Weak Solution (based on 2swap'...
3 hours ago | 493.53 KB
Untitled
6 hours ago | 5.97 KB
Untitled
8 hours ago | 7.02 KB
Untitled
13 hours ago | 6.88 KB
Untitled
15 hours ago | 5.46 KB
Untitled
17 hours ago | 49.94 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!