QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#295569#5075. Fenwick TreeQingyuWA 0ms3532kbC++23466b2023-12-31 13:45:372023-12-31 13:45:37

Judging History

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

  • [2023-12-31 13:45:37]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3532kb
  • [2023-12-31 13:45:37]
  • 提交

answer

#include <stdint.h>
#include <iostream>
#include <cpuid.h>
static void cpuid(uint32_t func, uint32_t sub, uint32_t data[4]) {
    __cpuid_count(func, sub, data[0], data[1], data[2], data[3]);
}
int main() {
    uint32_t data[4];
    char str[48];
    for(int i = 0; i < 3; ++i) {
        cpuid(0x80000002 + i, 0, data);
        for(int j = 0; j < 4; ++j)
            reinterpret_cast<uint32_t*>(str)[i * 4 + j] = data[j];
    }
    std::cout << str;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3532kb

input:

3
5
10110
5
00000
5
11111

output:

Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

result:

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