QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#310722#1. I/O Testyz_ly100 217ms3672kbC++141013b2024-01-21 17:12:442024-01-21 17:12:47

Judging History

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

  • [2024-01-21 17:12:47]
  • 评测
  • 测评结果:100
  • 用时:217ms
  • 内存:3672kb
  • [2024-01-21 17:12:44]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
using namespace std;
inline int read(){
	char ch=getchar();
	int f=1,x=0;
	while(ch<'0'||ch>'9'){
		if(ch=='-')
			f=-f;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9'){
		x=x*10+ch-'0';
		ch=getchar();
	}
	return x*f;
}
inline void work(int k){
	if(k<0){
		putchar('-');
		k=-k;
	}
	if(k>9)
		work(k/10);
	putchar(k%10+'0');
}
int n;
int main(){
	n=read();
	long long sum=0;
	for(int i=1;i<=n;i++){
		sum+=read();
	}
	work(sum);
	return 0;
}

output_test

#include<bits/stdc++.h>
using namespace std;
inline int read(){
	char ch=getchar();
	int f=1,x=0;
	while(ch<'0'||ch>'9'){
		if(ch=='-')
			f=-f;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9'){
		x=x*10+ch-'0';
		ch=getchar();
	}
	return x*f;
}
inline void work(int k){
	if(k<0){
		putchar('-');
		k=-k;
	}
	if(k>9)
		work(k/10);
	putchar(k%10+'0');
}
int n;
int main(){
	n=read();
	long long sum=0;
	for(int i=1;i<=n;i++){
		work(1e9-1);
		putchar(' ');
	}
	return 0;
}

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 217ms
memory: 3672kb

input:

10000000
214093236 957635276 929949042 568603569 578941190 172696773 495616719 376152608 840993659 319313160 663629109 992089892 192864002 502626417 929893711 454354413 676935314 794441931 930660851 509375018 394227142 962396135 327111233 271672611 515266390 368964832 961075988 597923035 590916861 2...

output:

-1373644875

result:

wrong answer expected 5499974831822773, found -1373644875

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 217ms
memory: 3532kb

input:

10000000

output:

999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 ...

result:

points 1.0 output test passed