QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#741594#1. I/O TestSkySummer200 ✓557ms3580kbC++201.6kb2024-11-13 14:43:372024-11-13 14:43:38

Judging History

你现在查看的是最新测评结果

  • [2024-11-13 14:43:38]
  • 评测
  • 测评结果:200
  • 用时:557ms
  • 内存:3580kb
  • [2024-11-13 14:43:37]
  • 提交

config.txt

10000000 10000000

input_test

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define de(a) cout << #a << " = " << a << "\n"
#define deg(a) cout << #a << " = " << a << " "
const long double pi = acosl(-1);
constexpr long double eps = 1e-12;
constexpr long long inf = 0x3f3f3f3f3f3f3f3f;
constexpr int mod = 998244353;
constexpr int N = 1e6 + 10;
constexpr int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
unsigned long long a[N], b[N];

void solve() {
    int n;
    cin >> n;

    int sum = 0;
    for (int i = 0; i < n; i++) {
        int x;
        cin >> x;
        sum += x;
    }

    cout << sum << "\n";
}

signed main() {
    ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);

    int T = 1;
    // cin >> T, cin.get();
    while (T--) {
        solve();
    }

    return 0;
}

output_test

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define de(a) cout << #a << " = " << a << "\n"
#define deg(a) cout << #a << " = " << a << " "
const long double pi = acosl(-1);
constexpr long double eps = 1e-12;
constexpr long long inf = 0x3f3f3f3f3f3f3f3f;
constexpr int mod = 998244353;
constexpr int N = 1e6 + 10;
constexpr int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
unsigned long long a[N], b[N];

void solve() {
    int n;
    cin >> n;

    for (int i = 0; i < n; i++) {
        cout << mod << " ";
    }
}

signed main() {
    ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);

    int T = 1;
    // cin >> T, cin.get();
    while (T--) {
        solve();
    }

    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 557ms
memory: 3580kb

input:

10000000
585289777 979317241 591984854 622349824 899531241 633374905 525730411 756979122 701066317 455981701 238333075 404724179 536089186 386650774 256241714 604953782 560774096 284632184 453579165 842174199 897523654 193911758 689464337 425097711 718179976 986962921 224712946 379384085 298103751 2...

output:

5499150158161596

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 443ms
memory: 3556kb

input:

10000000

output:

998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 998244353 ...

result:

points 1.0 output test passed