QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#41075#1. I/O TestL1ngYu100 106ms11756kbC++201.2kb2022-07-27 15:36:282022-07-27 15:36:30

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 15:36:30]
  • 评测
  • 测评结果:100
  • 用时:106ms
  • 内存:11756kb
  • [2022-07-27 15:36:28]
  • 提交

config.txt

10000000 10000000

input_test

#pragma GCC optimize("Ofast", "inline", "-ffast-math")
#pragma GCC target("avx,sse2,sse3,sse4,mmx")
#include <iostream>
using namespace std;
static constexpr int M = 1 << 23;
static char buf[M], *S = buf, *P = buf, c, l;
struct read
{
    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 << ret, 0;
}

output_test

#include <bits/stdc++.h>
#include <cpuid.h>
using namespace std;
using F = uint32_t;
static void cpu(F X, F Y, F msg[4])
{
    __cpuid_count(X, Y, msg[0], msg[1], msg[2], msg[3]);
}
signed main()
{
    F data[4]; char msg[50];
    for (int i = 0;i < 3;++i)
    {
        cpu(0x80000002 + i, 0, data);
        for (int j = 0;j < 4;++j)
            reinterpret_cast<F *>(msg)[i * 4 + j] = data[j];
    }
    cout << msg;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 106ms
memory: 11756kb

input:

10000000
395737859 745889292 502551835 843030084 429328072 892442271 781486766 305359315 526331290 873866411 528394472 553628265 908596915 443235941 785607418 122138602 790869007 848836642 261270681 419161679 977628068 859794183 294427038 347141602 151096182 517898238 764001440 142918397 267087905 2...

output:

5499197220913321

result:

points 1.0 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 2ms
memory: 3576kb

input:

10000000

output:

Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz

result:

wrong output format Expected integer, but "Intel(R)" found