QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#41075 | #1. I/O Test | L1ngYu | 100 | 106ms | 11756kb | C++20 | 1.2kb | 2022-07-27 15:36:28 | 2022-07-27 15:36:30 |
Judging History
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;
}
详细
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