QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#81867#2. BoatCCPSDCGK0 2ms3300kbC++14468b2023-02-26 15:44:462023-02-26 15:44:47

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-26 15:44:47]
  • 评测
  • 测评结果:0
  • 用时:2ms
  • 内存:3300kb
  • [2023-02-26 15:44:46]
  • 提交

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

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

500
308810287 308810287
53564892 53564892
316377768 316377768
420249597 420249597
731165653 731165653
319087025 319087025
153776963 153776963
425464316 425464316
651047701 651047701
142502072 142502072
31632388 31632388
572337890 572337890
400220429 400220429
414382974 414382974
279400752 279400752
...

output:

Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz

result:

wrong answer 1st lines differ - expected: '553232367', found: 'Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Wrong Answer

Test #41:

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

input:

100
191358459 947004691
342443850 366915813
22574423 36448174
228846908 747282766
190110113 253913299
93029730 879223713
290883541 747723417
162887369 973643964
586349400 863191444
242642824 878391136
18343882 502405347
18658435 174450786
308510413 787915209
79222154 665119810
422422946 793255277
53...

output:

Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz

result:

wrong answer 1st lines differ - expected: '167281196', found: 'Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz'

Subtask #4:

score: 0
Skipped

Dependency #1:

0%