QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#346623#1. I/O Testreturn_myself200 ✓569ms3824kbC++141.4kb2024-03-08 19:37:382024-03-08 19:37:38

Judging History

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

  • [2024-03-08 19:37:38]
  • 评测
  • 测评结果:200
  • 用时:569ms
  • 内存:3824kb
  • [2024-03-08 19:37:38]
  • 提交

config.txt

10000000 10000000

input_test

#include <iostream>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <cstring>
#include <stdio.h>
#include <vector>
#include <queue>
#include <map>
#include <time.h>
#include <stack>
#include <unordered_map>
#include <random>
#include <string>
using namespace std;
typedef long long ll;
typedef long double ld;
mt19937 rnd(time(0));
ll const inf = 2e18;
ll const mod = 998244353;
ll n, m, T;

int main()
{
	std::ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	T = 1;
	//cin >> T;
	while (T--)
	{
		cin >> n;
		ll sum = 0;
		for (int i = 0;i<n;++i)
		{
			cin >> m;
			sum += m;
		}
		cout << sum << '\n';
	}
	return 0;
}

output_test

#include <iostream>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <cstring>
#include <stdio.h>
#include <vector>
#include <queue>
#include <map>
#include <time.h>
#include <stack>
#include <unordered_map>
#include <random>
#include <string>
using namespace std;
typedef long long ll;
typedef long double ld;
mt19937 rnd(time(0));
ll const inf = 2e18;
ll const mod = 998244353;
ll n, m, T;
ll const x = 2e8;
int main()
{
	std::ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	T = 1;
	//cin >> T;
	while (T--)
	{
		cin >> n;
		cout << x;
		for (int i = 1; i < n; ++i)
		{
			cout << ' ' << x;
		}
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 569ms
memory: 3692kb

input:

10000000
899943640 799752725 214011010 997804438 230781251 671564008 964243507 349554754 895236127 999434637 806004323 224945792 814705495 582505226 376382413 573103412 374304053 175333491 622210974 504845852 287345471 703996561 618581433 341986699 699222574 893324093 926586715 668435024 215833523 6...

output:

5499021848990255

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 431ms
memory: 3824kb

input:

10000000

output:

200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 200000000 ...

result:

points 1.0 output test passed