QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#478859#1. I/O Testdaydreamwarrior200 ✓192ms3684kbC++171.8kb2024-07-15 11:50:302024-07-15 11:50:31

Judging History

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

  • [2024-07-15 11:50:31]
  • 评测
  • 测评结果:200
  • 用时:192ms
  • 内存:3684kb
  • [2024-07-15 11:50:30]
  • 提交

config.txt

10000000 10000000

input_test

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

#define getchar my_getchar
const int Isize = 1<<22;
char ibuf[Isize],*p1=ibuf,*p2=ibuf;
inline char getchar() {return p1==p2&&(p2=(p1=ibuf)+fread(ibuf,sizeof(char),sizeof(ibuf),stdin),p1==p2)?EOF:*p1++;}
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;

#define getchar my_getchar
const int Isize = 1<<22;
char ibuf[Isize],*p1=ibuf,*p2=ibuf;
inline char getchar() {return p1==p2&&(p2=(p1=ibuf)+fread(ibuf,sizeof(char),sizeof(ibuf),stdin),p1==p2)?EOF:*p1++;}
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: 3684kb

input:

10000000
594007602 846628958 118688465 332740249 318313026 202845521 915042938 282378057 970481760 768422784 730025680 961375766 566839660 330029774 330145242 390029486 394999596 932266627 708066070 247620802 834036784 781577526 558421941 444222363 931066805 715863808 959706782 540027468 560125066 5...

output:

5499337585176090

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 192ms
memory: 3564kb

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