QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#440513#1. I/O TestLDM0116200 ✓206ms3704kbC++142.4kb2024-06-13 19:55:132024-06-13 19:55:14

Judging History

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

  • [2024-06-13 19:55:14]
  • 评测
  • 测评结果:200
  • 用时:206ms
  • 内存:3704kb
  • [2024-06-13 19:55:13]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
#define mkp make_pair
#define ll long long
#define ull unsigned long long
#define pb emplace_back
#define sort stable_sort
#define iinf 0x3f3f3f3f
#define linf 0x3f3f3f3f3f3f3f3f
#define lowbit(x) x&(-x)
#define pii pair<int,int>
#define i128 __int128
using namespace std;
namespace smiling{
	int read(){
		int x=0;
		int f=1;
		char c=getchar_unlocked();
		while(!isdigit(c)){
			if(c=='-'){
				f=-1;
			}
			c=getchar_unlocked();
		}
		while(isdigit(c)){
			x=x*10+c-'0';
			c=getchar_unlocked();
		}

		return x*f;
	}
	void print(ll x){
		if(x<10){
			putchar_unlocked(x+'0');
			return;
		}
		print(x/10);
		putchar_unlocked(x%10+'0');
	}
	int n,a;
	ll s;
	int main(){
		n=read();
		for(int i=1;i<=n;i++){
			a=read();
			s+=a;
		}
		print(s);
		return 0;
	}
}
int main(){
	#ifdef ONLINE_JUDGE
    #else
        freopen("1.in","r",stdin);
        freopen("1.out","w",stdout);

        double s=clock();
    #endif


    ios::sync_with_stdio(false);
    cin.tie(0);
    
    smiling::main();


    #ifdef ONLINE_JUDGE
    #else
        double t=clock();
        printf("\n\ntime:%.6lf",(t-s)/1000);
    #endif
	return 0;
}

output_test

#include<bits/stdc++.h>
#define mkp make_pair
#define ll long long
#define ull unsigned long long
#define pb emplace_back
#define sort stable_sort
#define iinf 0x3f3f3f3f
#define linf 0x3f3f3f3f3f3f3f3f
#define lowbit(x) x&(-x)
#define pii pair<int,int>
#define i128 __int128
using namespace std;
namespace smiling{
	int read(){
		int x=0;
		int f=1;
		char c=getchar_unlocked();
		while(!isdigit(c)){
			if(c=='-'){
				f=-1;
			}
			c=getchar_unlocked();
		}
		while(isdigit(c)){
			x=x*10+c-'0';
			c=getchar_unlocked();
		}

		return x*f;
	}
	void print(ll x){
		if(x<10){
			putchar_unlocked(x+'0');
			return;
		}
		print(x/10);
		putchar_unlocked(x%10+'0');
	}
	int n;
	int main(){
		n=read();
		for(int i=1;i<=n;i++){
			print(100000000),putchar(' ');
		}
		return 0;
	}
}
int main(){
	#ifdef ONLINE_JUDGE
    #else
        freopen("1.in","r",stdin);
        freopen("1.out","w",stdout);

        double s=clock();
    #endif


    ios::sync_with_stdio(false);
    cin.tie(0);
    
    smiling::main();


    #ifdef ONLINE_JUDGE
    #else
        double t=clock();
        printf("\n\ntime:%.6lf",(t-s)/1000);
    #endif
	return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 171ms
memory: 3648kb

input:

10000000
537762629 916935146 994762970 859844180 311578709 107782581 587150679 820024382 577774633 919935481 849981241 907305687 522746517 807534216 981414112 197201971 737187486 136930568 133013662 226464000 990750357 710154428 334616769 790176410 652147838 838786646 527816469 496096625 887598822 2...

output:

5500748296534353

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 206ms
memory: 3704kb

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