QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#357456#1. I/O Testxucheng100 580ms3684kbC++141.5kb2024-03-18 21:26:082024-03-18 21:26:11

Judging History

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

  • [2024-03-18 21:26:11]
  • 评测
  • 测评结果:100
  • 用时:580ms
  • 内存:3684kb
  • [2024-03-18 21:26:08]
  • 提交

config.txt

10000000 10000000

input_test

/*
* @Author: xucheng
* @Date: 2024-03-18 21:23
*/

#include <iostream>
#include <cstring>
#include <algorithm>
#include <queue>
#include <vector>
#include <map>
#include <stack>
#include <set>
#include <cmath>

#define int long long
#define inf 0x3f3f3f3f3f3f3f3f
#define debug(x) cout << "debug: " << #x << " = " << x << "\n";

using namespace std;
using PII = pair<int, int>;

void solve()
{
    int n, x;
    cin >> n;
    int sum = 0;
    for (int i = 0; i < n; i ++ ) {
        cin >> x;
        sum += x;
    }
    cout << sum << "\n";
}

signed main()
{
    std :: ios :: sync_with_stdio(false);
    std :: cin.tie(nullptr), std :: cout.tie(nullptr);

    int t;
    t = 1;
    // cin >> t;

    while( t -- )
    {
        solve();
    }

    return 0;
}

output_test

/*
* @Author: xucheng
* @Date: 2024-03-18 21:23
*/

#include <iostream>
#include <cstring>
#include <algorithm>
#include <queue>
#include <vector>
#include <map>
#include <stack>
#include <set>
#include <cmath>

#define int long long
#define inf 0x3f3f3f3f3f3f3f3f
#define debug(x) cout << "debug: " << #x << " = " << x << "\n";

using namespace std;
using PII = pair<int, int>;

void solve()
{
    int n;
    cin >> n;
    for (int i = 0; i < n; i ++ ) {
        cout << "99999999 ";
    }
}

signed main()
{
    std :: ios :: sync_with_stdio(false);
    std :: cin.tie(nullptr), std :: cout.tie(nullptr);

    int t;
    t = 1;
    // cin >> t;

    while( t -- )
    {
        solve();
    }

    return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 580ms
memory: 3684kb

input:

10000000
737320073 402363917 795389334 365867161 306349821 408476424 135871735 104618977 898078882 903414617 369575840 446100384 494203523 297383584 760953103 296502178 375050529 531498103 161056328 717034382 974131716 898619573 927369107 738644889 182296838 967966107 394302568 912211081 694499269 4...

output:

5499945558928135

result:

points 1.0 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 117ms
memory: 3568kb

input:

10000000

output:

99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 999...

result:

wrong answer Integer 99999999 violates the range [10^8, 999999999]