QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#675664#1. I/O Testdaydreamwarrior200 ✓264ms4704kbC++141.6kb2024-10-25 19:05:292024-10-25 19:05:30

Judging History

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

  • [2024-10-25 19:05:30]
  • 评测
  • 测评结果:200
  • 用时:264ms
  • 内存:4704kb
  • [2024-10-25 19:05:29]
  • 提交

config.txt

10000000 10000000

input_test

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

template<typename T>inline void out(T x){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
}
template<typename T>inline void out(T x,char c){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
    putchar(c);
}
struct{char buf[1<<20],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<20,stdin),l==r)?EOF:*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;

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;

template<typename T>inline void out(T x,char c=0){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
    putchar(c);
}struct{char buf[1<<20],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<20,stdin),l==r)?EOF:*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;

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: 84ms
memory: 4704kb

input:

10000000
409666971 212408419 498366416 105375139 959121020 888130660 205242941 492095018 184838079 816128691 844528721 610684518 580028084 483617266 231696734 273146242 390182749 306603682 961863388 112220245 795239375 888654937 680666509 358457427 909101441 780135395 189730471 696237211 174684507 9...

output:

5499571724572869

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 264ms
memory: 3688kb

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