QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#330401#1. I/O TestDifficult_to_naming200 ✓67ms4064kbC++231.5kb2024-02-17 15:24:012024-02-17 15:24:02

Judging History

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

  • [2024-02-17 15:24:02]
  • 评测
  • 测评结果:200
  • 用时:67ms
  • 内存:4064kb
  • [2024-02-17 15:24:01]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
namespace FAST_IO{
	const int LEN=1<<18;
	char BUF[LEN];
	int Pin=LEN;
	inline void flushin(){memcpy(BUF,BUF+Pin,LEN-Pin),fread(BUF+LEN-Pin,1,Pin,stdin),Pin=0;return;}
	inline char Getc(){return (Pin==LEN?(fread(BUF,1,LEN,stdin),Pin=0):0),BUF[Pin++];}
	inline char Get(){return BUF[Pin++];}
	template<typename tp=int>inline tp read(){(Pin+32>=LEN)?flushin():void();tp res=0;char f=1,ch=' ';for(;ch<'0'||ch>'9';ch=Get())if(ch=='-')f=-1;for(;ch>='0'&&ch<='9';ch=Get())res=(res<<3)+(res<<1)+ch-48;return res*f;}
}
using namespace FAST_IO;
int n;
long long sum;
signed main(){
	n=read();
	for(int i=1;i<=n;i++)sum+=read();
	__builtin_printf("%lld",sum);
	return 0;
}

output_test

#include<bits/stdc++.h>
namespace FAST_IO{
	const int LEN=1<<18;
	char PUF[LEN];
	int Pout;
	inline void flushout(){fwrite(PUF,1,Pout,stdout),Pout=0;return;}
	inline void Putc(char x){if(Pout==LEN)flushout(),Pout=0;PUF[Pout++]=x;}
	inline void Put(char x){PUF[Pout++]=x;}
	template<typename tp>inline void wt(tp a){if(a>9)wt(a/10);Put(a%10+'0');return;}
	template<typename tp>inline void write(tp a,char b=' ')
	{
		static int stk[20],top;
		(Pout+32>=LEN)?flushout():void();
		if(a<0)Put('-'),a=-a;
		else if(a==0)Put('0');
		for(top=0;a;a/=10)stk[++top]=a%10;
		for(;top;--top)Put(stk[top]^48);
		Put(b);
		return;
	}
}
using namespace FAST_IO;
int n,sum;
signed main(){
	__builtin_scanf("%d",&n);
	for(int i=1;i<=n;i++)write(100000001);
	flushout();
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 67ms
memory: 4064kb

input:

10000000
553167191 484904549 231896237 386612117 464791260 798300292 710525842 949695709 529028832 286395367 741227138 407653180 220552559 555207470 978665498 968314320 208952640 803703973 426595090 350662483 390408133 232422892 615845487 366382282 343664935 367091651 329208230 120607121 759014267 1...

output:

5498971952122934

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 36ms
memory: 3880kb

input:

10000000

output:

100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 100000001 ...

result:

points 1.0 output test passed