QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#36687#1. I/O TestD_F_S200 ✓425ms3544kbC++888b2022-06-28 14:23:102022-06-28 14:23:13

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-06-28 14:23:13]
  • 评测
  • 测评结果:200
  • 用时:425ms
  • 内存:3544kb
  • [2022-06-28 14:23:10]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
#define inl inline
using namespace std;
const int N=1e5+5;
int n;
long long ans;
inl int Read()
{
	int s=0; char c; while(!isdigit(c=getchar()));
	for(;isdigit(c);c=getchar()) s=s*10+c-'0'; return s;
}
inl void Write(long long x)
{
	int c=0,s[20]; do s[++c]=x%10; while(x/=10);
	while(c--) putchar(s[c+1]+'0'); putchar(' ');
}
int main()
{
	for(n=Read();n--;) ans+=Read();
	Write(ans);
	return 0;
}

output_test

#include<bits/stdc++.h>
#define inl inline
using namespace std;
const int N=1e5+5;
int n;
long long ans;
inl int Read()
{
	int s=0; char c; while(!isdigit(c=getchar()));
	for(;isdigit(c);c=getchar()) s=s*10+c-'0'; return s;
}
inl void Write(int x)
{
	int c=0,s[10]; do s[++c]=x%10; while(x/=10);
	while(c--) putchar(s[c+1]+'0'); putchar(' ');
}
int main()
{
	for(n=Read();n--;) Write(100000000);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 425ms
memory: 3500kb

input:

10000000
546729102 496339310 445348938 310051148 459455339 736881814 975540925 211951200 266735081 882745881 523178581 129752078 144507549 573817376 876784714 274879809 980670652 520295730 439774692 545315307 140306077 921814451 105341655 607829396 544170685 348298402 665134699 286570018 743016060 1...

output:

5500076132183446 

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 361ms
memory: 3544kb

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