QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#41037 | #1. I/O Test | L1ngYu | 100 | 134ms | 11904kb | C++20 | 1.6kb | 2022-07-27 14:22:10 | 2022-07-27 14:22:12 |
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;
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 << ret, 0;
}
output_test
#include <bits/stdc++.h>
using namespace std;
std::string cpp_standard()
{
auto VER = __cplusplus;
if (VER < 201103) return "C++98";
else if(VER == 201103) return "C++11";
else if(VER == 201402) return "C++14";
else if(VER == 201703) return "C++17";
else return "C++20";
}
std::string ver_string(int a, int b, int c)
{
std::ostringstream ss;
ss << a << '.' << b << '.' << c;
return ss.str();
}
std::string true_cxx =
#ifdef __clang__
"Clang++";
#else
"G++";
#endif
std::string true_cxx_ver =
#ifdef __clang__
ver_string(__clang_major__, __clang_minor__, __clang_patchlevel__);
#else
ver_string(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
#endif
signed main()
{
cout << true_cxx << ' ' << true_cxx_ver << '\n';
cout << "Now C++ standard: " << cpp_standard();
}
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 134ms
memory: 11904kb
input:
10000000 220291999 763636657 327250637 985523679 610345177 403203166 905088823 130990883 665484917 239592573 108483408 573432506 346315231 708901782 765478993 750354759 166586796 381449330 230112386 975291523 703659608 564976524 598930701 505381893 900905195 165413118 360902701 754821133 906612810 7...
output:
5499907757882148
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 2ms
memory: 3704kb
input:
10000000
output:
G++ 11.1.0 Now C++ standard: C++20
result:
wrong output format Expected integer, but "G++" found