QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#117508#1. I/O TesticyM1voya100 78ms3564kbC++14836b2023-07-01 14:46:002023-07-01 14:46:02

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-01 14:46:02]
  • 评测
  • 测评结果:100
  • 用时:78ms
  • 内存:3564kb
  • [2023-07-01 14:46:00]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
#define gc (l==r&&(r=(l=c)+fread(c,1,65536,stdin),l==r)?EOF:*l++)

long long s; char c[65536],*l=c,*r=c;
inline int read() {
    int x=0; char ch=gc;
    while (!isdigit(ch)) ch=gc;
    while (isdigit(ch)) x=x*10+(ch^48),ch=gc;
    return x;
}

int main() {
    for (int i=1; i<=1250000; ++i)
        s+=read()+read()+read()+read()+read()+read()+read()+read();
    printf("%lld",s);
    return 0;
}

output_test

#include<cstdio>

int n,p1=-1,p2,num[12]; char cw[65536];
inline void write(int x) {
    if (p1>65516) fwrite(cw,1,p1+1,stdout),p1=-1;
    do num[++p2]=x%10; while (x/=10);
    do cw[++p1]=num[p2]|48; while (--p2);
    cw[++p1]=' ';
}

int main() {
    for (int i=1; i<=5000000; ++i)
        write(100000000),write(100000000);
    return fwrite(cw,1,p1+1,stdout),0;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 78ms
memory: 3564kb

input:

10000000
207939500 827550715 232241786 445629955 942132475 882986680 116242918 354418051 544109545 312002002 642054145 550021870 772592582 393413019 309654345 479374636 165275858 104374200 489975995 213412528 259320726 273109465 400173643 362402319 856780758 308410153 901309039 389674753 441059616 5...

output:

125523520255277

result:

wrong answer expected 5501401886270476, found 125523520255277

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 54ms
memory: 1592kb

input:

10000000

output:

100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...

result:

points 1.0 output test passed