QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#478869#1. I/O Testdaydreamwarrior200 ✓204ms3620kbC++171.4kb2024-07-15 11:56:132024-07-15 11:56:15

Judging History

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

  • [2024-07-15 11:56:15]
  • 评测
  • 测评结果:200
  • 用时:204ms
  • 内存:3620kb
  • [2024-07-15 11:56:13]
  • 提交

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: 3544kb

input:

10000000
482222971 592831341 273089554 232419533 131860364 786608697 405834241 300742749 524876873 187042517 662380969 505024594 804606000 818129100 485180521 324985295 183716647 559923345 574726077 637877101 216064995 595681816 154964581 255491160 991272295 384457594 526119785 749116291 541495643 1...

output:

5498490883285515

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 204ms
memory: 3620kb

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