OJ-Problems-Source/CodeVS/2235_冰封.c

22 lines
272 B
C
Raw Normal View History

2016-07-06 14:28:18 +08:00
/*
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:ǧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>Ŀ:p2235 <EFBFBD><EFBFBD>Ʊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
#include <stdio.h>
int main(int argc, char* argv[]) {
int a;
float b;
scanf("%i%f", &a, &b);
b /= 10.0;
a *= b;
if(a % 10 < 5)
a -= a % 10;
else {
a -= a % 10;
a += 10;
}
printf("%i", a);
return 0;
}