QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#116029#1. I/O Testmomoyuu100 475ms3392kbC++17760b2023-06-27 23:51:272023-06-27 23:51:29

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-27 23:51:29]
  • 评测
  • 测评结果:100
  • 用时:475ms
  • 内存:3392kb
  • [2023-06-27 23:51:27]
  • 提交

config.txt

10000000 10000000

input_test

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cassert>
using namespace std;
using ll = long long;

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n;
    cin>>n;
    ll sum = 0;
    for(int i = 0;i<n;i++){
        ll a;
        cin>>a;
        sum += a;
    }
    cout<<sum<<endl;
}

output_test

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cassert>
using namespace std;
using ll = long long;

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n;
    cin>>n;
    ll sum = 0;
    for(int i = 0;i<n;i++){
        ll a;
        //cin>>a;
        cout<<n<<endl;
    }
   // cout<<sum<<endl;
}

详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 475ms
memory: 3392kb

input:

10000000
487497704 711632027 442556118 382342668 870219255 817043825 209018821 886327356 104815706 582218798 300981039 756120164 583162308 492398186 742134831 360724185 217397424 940898416 126053701 921430985 313217876 740005941 786724994 172911306 425529683 709258690 877340613 103052931 968332130 4...

output:

5499791513507164

result:

points 1.0 input test passed

Subtask #2:

score: 0
output_test Time Limit Exceeded

Test #2:

score: 0
output_test Time Limit Exceeded

input:

10000000

output:

10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
10000000
100...

result: