QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#672701#1. I/O Testdaydreamwarrior200 ✓325ms4624kbC++141.6kb2024-10-24 18:13:292024-10-24 18:13:29

Judging History

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

  • [2024-10-24 18:13:29]
  • 评测
  • 测评结果:200
  • 用时:325ms
  • 内存:4624kb
  • [2024-10-24 18:13:29]
  • 提交

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=buf;
        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;unsigned 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;
}

output_test

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

namespace fastio{
    struct{char buf[1<<20],*l=buf,*r=buf;
        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;unsigned 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;
}

详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 86ms
memory: 4624kb

input:

10000000
395978684 790894745 705339263 534931783 456735900 183182153 355810197 828283788 664795739 566722565 808215293 691884960 534425184 725272146 910749308 473883425 791939697 156918179 325612907 374860606 825263164 488410177 241187634 212005757 863644074 945516128 371595601 287368399 643769907 5...

output:

5500385537030442

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 325ms
memory: 3608kb

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