QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#714271#1. I/O TestCore_65536200 ✓446ms3696kbC++231023b2024-11-05 22:21:022024-11-05 22:21:04

Judging History

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

  • [2024-11-05 22:21:04]
  • 评测
  • 测评结果:200
  • 用时:446ms
  • 内存:3696kb
  • [2024-11-05 22:21:02]
  • 提交

config.txt

10000000 10000000

input_test

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'

inline int read_positive() { //读取一个正整数
	int x = 0;
	char c = getchar();
	while (c < '0' || c > '9') 
		c = getchar();
	while (c >= '0' && c <= '9') {
		x = x * 10 + c - '0';
		c = getchar();
	}
	return x;
}

int main(){
    ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    int n;  n = read_positive();
    // while(n--){
    //     cout<<100000000<<endl;
    // }
    long long ans = 0;
    while(n--){
        long long x;  
        x = read_positive();
        ans += x;
    }
    cout<<ans<<endl;
}

output_test

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'

int main(){
    ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    register int n;  cin>>n;
    while(n--){
        cout<<100000000<<endl;
    }
    // register long long ans = 0;
    // while(n--){
    //     register long long x;  cin>>x;
    //     ans += x;
    // }
    // cout<<ans<<endl;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 259ms
memory: 3640kb

input:

10000000
849103405 615040448 192057479 314847663 423622528 506258643 663745345 510901748 326874959 253805234 258202151 236941348 600230637 990706881 916901994 937080097 121639270 744918876 989901567 236511686 695442852 630993908 597869482 444500912 713037089 808229647 879394586 380699846 301877090 1...

output:

5500358640917125

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 446ms
memory: 3696kb

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