QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#672709#1. I/O Testdaydreamwarrior0 269ms4628kbC++141.6kb2024-10-24 18:19:412024-10-24 18:19:42

Judging History

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

  • [2024-10-24 18:19:42]
  • 评测
  • 测评结果:0
  • 用时:269ms
  • 内存:4628kb
  • [2024-10-24 18:19:41]
  • 提交

config.txt

10000000 10000000

input_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

namespace fastio{
    struct{char buf[1<<20],*l=buf,*r=l;
        operator char(){if(l==r)r=(l=buf)+fread(buf,1,1<<20,stdin);return *l++;}
        template<typename T>operator T(){T x=0;char f=0,c=*this;
        while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
        while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
        return f?-x:x;
    }}in;signed stk[39],tp;
    template<typename T>void out(T x,char c=0){
        if(x<0)putchar('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
    }
}using fastio::in;using fastio::out;

int main(){
    int n = in;
    for(int k=1;k<=n;k++)
        out(100000000,' ');
    return 0;
}

output_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

namespace fastio{
    struct{char buf[1<<20],*l=buf,*r=l;
        operator char(){if(l==r)r=(l=buf)+fread(buf,1,1<<20,stdin);return *l++;}
        template<typename T>operator T(){T x=0;char f=0,c=*this;
        while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
        while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
        return f?-x:x;
    }}in;signed stk[39],tp;
    template<typename T>void out(T x,char c=0){
        if(x<0)putchar('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
    }
}using fastio::in;using fastio::out;

int main(){
	int n = in;
	long long ans = 0;
	for(int k=1;k<=n;k++)
		ans += (int)in;
	out(ans);
	return 0;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 269ms
memory: 4628kb

input:

10000000
545001320 706747800 361852572 476180368 625608301 762993984 866541274 378861549 430591323 909800609 242993979 814633028 202065739 336783509 164458822 796870331 455554581 323722003 736637849 619339987 785691716 117163573 425531327 370881853 103702248 777330062 696888159 523617059 520613623 9...

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:

wrong answer expected 5499036197357880, found 100000000

Subtask #2:

score: 0
output_test Runtime Error

Test #2:

score: 0
output_test Runtime Error

input:

10000000

output:


result: