Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

ATM: "wrong answer"

$
0
0

include<stdio.h>

int main() {
float x,y;

scanf("%f %f",&x,&y);
if(((int)x%5==0) && (x + .5 <= y)) 
printf(".2f",y-x-.5);
else
printf(".2f",y);
return 0;

}


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>