QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#41031#1. I/O TestL1ngYu100 922ms11768kbC++201.3kb2022-07-27 14:15:302022-07-27 14:15:31

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:15:31]
  • 评测
  • 测评结果:100
  • 用时:922ms
  • 内存:11768kb
  • [2022-07-27 14:15:30]
  • 提交

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;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 101ms
memory: 11768kb

input:

10000000
251755840 564760189 314481608 679302255 286015252 131645584 147956330 765374418 846219535 854996860 744339854 635994642 566305977 795594616 419391322 334360021 752073137 429878278 447208070 808480248 350616442 804621122 817860991 847413861 313764184 738580130 407324224 290499536 708773355 6...

output:

932914761

result:

wrong answer expected 5499591544814079, found 932914761

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 922ms
memory: 3512kb

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