QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#478845#1. I/O Testdaydreamwarrior200 ✓177ms3636kbC++141.4kb2024-07-15 11:46:002024-07-15 11:46:04

Judging History

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

  • [2024-07-15 11:46:04]
  • 评测
  • 测评结果:200
  • 用时:177ms
  • 内存:3636kb
  • [2024-07-15 11:46:00]
  • 提交

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_unlocked();
		while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar_unlocked();}
		while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar_unlocked();}
		return f?-x:x;
	}}in;int stk[39],tp;
	template<typename T>void out(T x,char c=0){
		if(x<0)putchar_unlocked('-'),x=-x;
		do stk[tp++]=x%10;while(x/=10);
		while(tp)putchar_unlocked(stk[--tp]^48);
		if(c)putchar_unlocked(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_unlocked();
		while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar_unlocked();}
		while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar_unlocked();}
		return f?-x:x;
	}}in;int stk[39],tp;
	template<typename T>void out(T x,char c=0){
		if(x<0)putchar_unlocked('-'),x=-x;
		do stk[tp++]=x%10;while(x/=10);
		while(tp)putchar_unlocked(stk[--tp]^48);
		if(c)putchar_unlocked(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: 173ms
memory: 3636kb

input:

10000000
713782950 272536082 299629516 838845969 392252679 738389150 432915298 719346911 550024981 349890938 737904789 223697371 919736214 209733902 590667954 315251460 786801047 825510931 573830942 677809766 971560479 713686541 726695657 411842970 883009477 868770537 556786314 889397443 926024509 4...

output:

5500258394398625

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 177ms
memory: 3588kb

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