15 lines
166 B
C++
15 lines
166 B
C++
|
#include<iostream>
|
||
|
using namespace std;
|
||
|
int main(){
|
||
|
int x,y;
|
||
|
cin>>x>>y;
|
||
|
int day=(y-x)/2;
|
||
|
if((y-x)%2!=0){
|
||
|
day+=1;
|
||
|
}
|
||
|
cout<<day;
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|