提交记录 15945


用户 题目 状态 得分 用时 内存 语言 代码长度
LJC00118 test. 自定义测试 Accepted 100 846.208 ms 36 KB C++ 1.09 KB
提交时间 评测时间
2021-02-27 17:55:32 2023-09-03 19:41:38
#include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) for (int i = a; i >= b; i--)
using namespace std;

typedef unsigned long long ull;
typedef pair <int, int> pii;
typedef long long ll;

template <typename T>
inline void read(T &f) {
    f = 0; T fu = 1; char c = getchar();
    while (c < '0' || c > '9') { if (c == '-') { fu = -1; } c = getchar(); }
    while (c >= '0' && c <= '9') { f = (f << 3) + (f << 1) + (c & 15); c = getchar(); }
    f *= fu;
}

template <typename T>
void print(T x) {
    if (x < 0) putchar('-'), x = -x;
    if (x < 10) putchar(x + 48);
    else print(x / 10), putchar(x % 10 + 48);
}

template <typename T>
void print(T x, char t) {
    print(x); putchar(t);
}

const int md = 998244353;

inline int add(int x, int y) {
    if (x + y >= md) return x + y - md;
    return x + y;
}

// inline int add(int x, int y) {
//     x += y;
//     return x >= md ? x - md : x;
// }

int x;

int main() {
    int st = clock();
    for (int i = 1; i <= 1000000000; i++) {
        x = add(x, 32877523);
    }
    cout << clock() - st << endl;
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1846.208 ms36 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-20 00:39:48 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠