QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#41030#1. I/O TestL1ngYu100 834ms11888kbC++201.3kb2022-07-27 14:14:452022-07-27 14:14:46

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-07-27 14:14:46]
  • 评测
  • 测评结果:100
  • 用时:834ms
  • 内存:11888kb
  • [2022-07-27 14:14:45]
  • 提交

config.txt

10000000 10000000

input_test

#include <iostream>
using namespace std;
struct read
{
    static const int M = 1 << 23;
    char buf[M], *S = buf, *P = buf, c, l;
    inline char gc() { return (S == P && (P = (S = buf) + fread(buf, 1, M, stdin), S == P) ? EOF : *S++); }
    template<class T> read& operator>>(T &x)
    {
        for (c = 0;!isdigit(c);c = gc()) l = c;
        for (x = 0;isdigit(c);c = gc()) x = x * 10 + (c & 15);
        return x = (l ^ 45) ? x : -x, *this;
    }
}Cin;
signed main()
{
    int64_t ret = 0;
    int n, x; cin >> n;
    for (int i = 1;i <= n;++i) Cin >> x, ret += x;
    return cout << x, 0;
}

output_test

#include <iostream>
using namespace std;
struct write
{
    static const int M = 1 << 23;
    char buf[M], *O = buf, s[50], len;
    inline void out(char x) { (O - buf < M) ? (*O++ = x) : (fwrite(buf, O - buf, 1, stdout), O = buf, *O++ = x); }
    inline void put() { fwrite(buf, O - buf, 1, stdout); } // return cout.put(), 0;
    write &operator<<(char x) { out(x); return *this; }
    write &operator<<(int x) { if (x < 0) out('-'), x = -x; if (!x) out('0'); for (len = 0;x;x /= 10) s[++len] = x % 10 + '0'; while (len--) out(s[len + 1]); return *this; }
}Cout;

constexpr int N = 1e9 - 1;
signed main()
{
    int n; cin >> n;
    for (int i = 1;i <= n;++i) cout << N << ' ';
    return Cout.put(), 0;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 106ms
memory: 11888kb

input:

10000000
149779398 607390343 254968416 116367260 520954892 484207301 870404409 500413099 389232444 986372214 905574117 440534572 121561475 272238533 365681552 854407900 785329458 954956237 588053664 346807627 110514174 979687753 287031332 478113291 948363931 631841443 824490957 301409999 419768392 4...

output:

952900187

result:

wrong answer expected 5500484676893426, found 952900187

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 834ms
memory: 3588kb

input:

10000000

output:

999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 ...

result:

points 1.0 output test passed