mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
22 lines
272 B
C
22 lines
272 B
C
|
/*
|
|||
|
<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;
|
|||
|
}
|