编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#2337 #1002. 找倍数 Compile Error 0 0 ms 0 K C++ 17 / 444 B JimmyHu 2023-11-17 10:55:56
显示原始代码
#include <bits\stdc++.h>
using namespace std;
long long aim_num = 998244353, x, num;
int main() {
    cin >> num;
    int check = 1, t = 0;
    while (check) {
        x = num - t * aim_num;
        if (aim_num - 1 >= x && x >= 0)
            check = 0;
        else {
            if (num >= aim_num)
                t += 1;
            else
                t -= 1;
        }
    }
    cout << x << endl;
    return 0;
}

编译信息

/sandbox/1/a.cpp:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.