哪位大佬能告诉我为什么只有90分呐
查看原帖
哪位大佬能告诉我为什么只有90分呐
803375
SakuraCB楼主2022/10/4 16:31
#include<stdio.h>
#include<math.h>
int main()
{
    double a, b;
    scanf("%lf %lf", &a, &b);
    double r = a-b*floor(a/b);
    if(r >= 0)
    {
        printf("%lf", r);
    }
    else
    {
        printf("%lf", r-b);
    }
    return 0;
}
2022/10/4 16:31
加载中...