QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#478851#1. I/O Testdaydreamwarrior200 ✓261ms3688kbC++171.3kb2024-07-15 11:48:162024-07-15 11:48:16

Judging History

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

  • [2024-07-15 11:48:16]
  • 评测
  • 测评结果:200
  • 用时:261ms
  • 内存:3688kb
  • [2024-07-15 11:48:16]
  • 提交

config.txt

10000000 10000000

input_test

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

namespace fastio{
	struct{template<typename T>operator T(){
		T x=0;char f=0,c=getchar();
		while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar();}
		while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar();}
		return f?-x:x;
	}}in;int 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{template<typename T>operator T(){
		T x=0;char f=0,c=getchar();
		while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar();}
		while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar();}
		return f?-x:x;
	}}in;int 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: 261ms
memory: 3688kb

input:

10000000
260054618 541067379 355951504 404433023 711528648 128261683 908659584 249776733 822516078 130516595 327117336 305268693 368696918 547029855 701619187 261742669 484615079 565192746 667868301 629805811 838467530 365067423 834452672 549494780 273363316 787107616 498378771 534225365 454326734 5...

output:

5498311018948913

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 261ms
memory: 3612kb

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