QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#826408#1. I/O TestI_like_magic200 ✓305ms3616kbC++14715b2024-12-22 10:17:042024-12-22 10:17:04

Judging History

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

  • [2024-12-22 10:17:04]
  • 评测
  • 测评结果:200
  • 用时:305ms
  • 内存:3616kb
  • [2024-12-22 10:17:04]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read() {
    int res = 0, f = 1; char c = getchar();
    while(c != '-' && (c < '0' || c > '9')) c = getchar();
    if(c == '-') f = -1, c = getchar();
    while(c >= '0' && c <= '9') res = res * 10 + c - '0', c = getchar();
    return res * f;
}
signed main() {
    int n = read();
    int ans = 0;
    for(int i = 1; i <= n; i ++) {
        int a;
        a = read();
        ans += a;
    }
    cout << ans;
}

output_test

#include<bits/stdc++.h>
using namespace std;
int main() {
    int t = 10000000;
    while(t--) {
        int i = 9;
        while(i --) putchar('1');
        putchar('\n');
    }
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 224ms
memory: 3496kb

input:

10000000
388949486 616884603 638823262 510495993 833528002 728869155 628131742 955190110 709664914 260647346 643060309 188472798 983314420 624735663 170594879 666060617 837620202 267575545 968248213 839351754 974330889 695408617 747122364 206317015 445388018 166184989 343594730 621895335 247309717 7...

output:

5500891454819769

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 305ms
memory: 3616kb

input:

10000000

output:

111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
...

result:

points 1.0 output test passed