if在实际运行当中的耗时问题

如题,当用如下程序,在vs2022当中运行时,if消耗时间过长。

#include 

int main()
{
    int m, n;
    double a, b;
    register int g = 12345, k = 567890;
    while (1)
    {
        scanf("%d%d%lf%lf", &m, &n, &a, &b);

        if (g != m || k != n)
        {
            printf("账号或密码错误\n");
            continue;
        }`
        if (b > a)
        {
            printf("余额不足\n");
            continue;
        }
        if (b > 20000)
        {
            printf("超过单次取款限额\n");
            continue;
        }
        printf("取款成功:%.2lf-%.2lf=%.2lf", a, b, a - b);
        break;
    }
    return 0;
}



```c






![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/622307206666198.png "#left")




怎么可能消耗时间过长,当if条件满足时,continue啦,你需要继续输入正确的数据,程序在等待啊
你在第10行前加一句printf("请输入数据:");就比较容易明白了

你不要看vs给你显示的时间,这是全部用时,不是if的用时
你scanf阻塞着代码呢,你输入数据不花时间的吗

img