ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1327
. Fuses
Here's my AC
Posted by
HM2P33
4 Feb 2013 22:20
#include <iostream>
using namespace std;
int main(void){
int a,b,res;
cin>>a>>b;
res = (b-a +1)/ 2;
if((b-a +1)&1 and b&1) res++;
cout<<res<<endl;
return 0;
}
© 2000–2024
Timus Online Judge Team
. All rights reserved.