QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#188983 | #1. I/O Test | 5ab | 200 ✓ | 102ms | 101052kb | C++20 | 1.3kb | 2023-09-26 18:34:01 | 2023-09-26 18:34:02 |
Judging History
config.txt
10000000 10000000
input_test
#include <iostream>
#include <cstring>
#include <limits>
using namespace std;
static constexpr size_t buf_size = 134217728;
static char inbuf[buf_size + 1] = {};
namespace {
char *pos, *end;
void load() {
pos = inbuf;
end = inbuf + cin.readsome(inbuf, buf_size);
*end = '\0';
}
inline char get_next() { return *(pos++); }
template<class T>
void scan(T &x) {
char c = get_next();
// bool neg = false;
// if (c == '-')
// neg = true, x = 0;
// else
x = c & 15;
while ((c = get_next()) >= '0')
x = x * 10 + (c & 15);
// if (neg)
// x = -x;
}
}
int main()
{
cin.tie(0)->sync_with_stdio(0);
int x = 1e7;
long long res = 0, y;
load();
scan(x);
while (x--)
{
scan(y);
res += y;
// res ^= y;
}
cout << res << "\n";
return 0;
}
output_test
/* name: out
* author: 5ab
* created at: 2023-09-26
*/
#include <iostream>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define ssz(x) (int((x).size()))
auto chmax = [](auto& x, auto y) { if (x < y) x = y; };
auto chmin = [](auto& x, auto y) { if (y < x) x = y; };
using ll = long long;
signed main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n, a = 1e8;
cin >> n;
for (int i = 0; i < n; i++)
cout << "100000000 ";
return 0;
}
// started coding at: 09-26 18:32:36
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 55ms
memory: 101052kb
input:
10000000 150445235 948005815 467207757 218503211 778555717 610897928 137782051 961823577 779494985 809179153 885705709 299572402 715328188 184976288 358784152 540463416 149099819 561699099 861040098 744033968 849984224 187311491 969486703 501741363 782557874 831880535 374062282 177997675 987820091 8...
output:
5500414577644961
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 102ms
memory: 3392kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed