QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#180740 | #1. I/O Test | 5ab | 100 | 60ms | 100972kb | C++20 | 955b | 2023-09-16 11:04:49 | 2023-09-16 11:04:51 |
Judging History
config.txt
10000000 0
input_test
#include <iostream>
#include <cstring>
using namespace std;
static constexpr size_t buf_size = 134217728;
static constexpr size_t integer_size = 10;
static char inbuf[buf_size + 1] = {};
namespace {
size_t pos, end;
void load() {
end = cin.readsome(inbuf, buf_size);
inbuf[end] = '\0';
}
void skip_space() {
while (inbuf[pos] <= ' ') {
pos++;
}
}
char get_next() { return inbuf[pos++]; }
char get_next_nonspace() {
skip_space();
return inbuf[pos++];
}
template<class T>
void scan(T &x) {
char c = get_next_nonspace();
// 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, y;
long long res = 0;
load();
scan(x);
while (x--)
{
scan(y);
res += y;
}
cout << res << "\n";
return 0;
}
output_test
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 60ms
memory: 100972kb
input:
10000000 192081133 299288575 906147368 305746093 948269901 871180133 123196603 405620085 192805058 155714297 936154014 392388271 915029208 672153408 984170291 181797979 594028588 102604386 277409106 605603306 142193294 669339353 440637060 154116902 888552848 837975955 721857193 776396244 266796017 2...
output:
5500053382708003
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped