QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#87905#1. I/O TestJerryCKB200 ✓254ms4288kbC++4.4kb2023-03-14 20:01:262023-03-14 20:01:30

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-14 20:01:30]
  • 评测
  • 测评结果:200
  • 用时:254ms
  • 内存:4288kb
  • [2023-03-14 20:01:26]
  • 提交

config.txt

10000000 10000000

input_test

#include <bits/stdc++.h>
using namespace std;


#define repeat(i, a, b) for (int i = (a), _ = (b); i <= _; ++i)
using ll = long long;

template<int size = 1 << 20>
struct IO {
    char in[size], out[size], *p1, *p2, *pp;
    IO() : p1(in), p2(in), pp(out) {}
    ~IO() { fwrite(out, 1, pp - out, stdout); }
    inline char gc() { if (p1 == p2) p2 = (p1 = in) + fread(in, 1, size, stdin); return p1 == p2 ? ' ' : *p1++; }
    inline bool blank(char ch) { return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t'; }
    template<class T> inline void read(T& x) { double tmp = 1; bool sign = 0; x = 0; char ch = gc(); for (; !isdigit(ch); ch = gc()) sign |= ch == 45; for (; isdigit(ch); ch = gc()) x = x * 10 + ch - 48; if (ch == '.') for (ch = gc(); isdigit(ch); ch = gc()) tmp /= 10.0, x += tmp * (ch - '0'); if (sign) x = -x; }
    inline void read(string& s) { char ch = gc(); for (; blank(ch); ch = gc()); for (; !blank(ch); ch = gc()) s += ch; }
    inline void read(char& c) { while (!blank(c)) c = gc(); }
    template<typename T, typename... Args> inline void read(T& x, Args&... args) { read(x), read(args...); }
    inline void push(const char& c) { if (pp - out == size) fwrite(out, 1, size, stdout), pp = out; *pp++ = c; }
    inline void write(char c) { push(c); }
    inline void write(char* s) { for (int i = 0; s[i]; ++i) push(s[i]); }
    inline void write(string s) { for (auto x : s) push(x); }
    template<class T> inline void write(T x) { if (x < 0) x = -x, push('-'); static T sta[35]; T top = 0; do sta[top++] = x % 10, x /= 10; while (x); while (top) push(sta[--top] + '0'); }
    template<class T> inline void write(T x, char c) { write(x), push(c); }
    template<typename T, typename... Args> inline void write(const T x, const Args... args) { write(x), write(args...); }
    void file(const string s) { freopen((s + ".in").c_str(), "r", stdin), freopen((s + ".out").c_str(), "w", stdout); }
    template<typename T> IO& operator>>(T& x) { read(x); return *this; }    
    template<typename T> IO& operator<<(const T x) { write(x); return *this; }
};
IO<> io;

ll n, x, sum;

int main() {
    io >> n;
	repeat(i, 1, n) io >> x, sum += x;
	io << sum;

    return 0;
}

output_test

#include <bits/stdc++.h>
using namespace std;

#define repeat(i, a, b) for (int i = (a), _ = (b); i <= _; ++i)
using ll = long long;

template<int size = 1 << 20>
struct IO {
    char in[size], out[size], *p1, *p2, *pp;
    IO() : p1(in), p2(in), pp(out) {}
    ~IO() { fwrite(out, 1, pp - out, stdout); }
    inline char gc() { if (p1 == p2) p2 = (p1 = in) + fread(in, 1, size, stdin); return p1 == p2 ? ' ' : *p1++; }
    inline bool blank(char ch) { return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t'; }
    template<class T> inline void read(T& x) { double tmp = 1; bool sign = 0; x = 0; char ch = gc(); for (; !isdigit(ch); ch = gc()) sign |= ch == 45; for (; isdigit(ch); ch = gc()) x = x * 10 + ch - 48; if (ch == '.') for (ch = gc(); isdigit(ch); ch = gc()) tmp /= 10.0, x += tmp * (ch - '0'); if (sign) x = -x; }
    inline void read(string& s) { char ch = gc(); for (; blank(ch); ch = gc()); for (; !blank(ch); ch = gc()) s += ch; }
    inline void read(char& c) { while (!blank(c)) c = gc(); }
    template<typename T, typename... Args> inline void read(T& x, Args&... args) { read(x), read(args...); }
    inline void push(const char& c) { if (pp - out == size) fwrite(out, 1, size, stdout), pp = out; *pp++ = c; }
    inline void write(char c) { push(c); }
    inline void write(char* s) { for (int i = 0; s[i]; ++i) push(s[i]); }
    inline void write(string s) { for (auto x : s) push(x); }
    template<class T> inline void write(T x) { if (x < 0) x = -x, push('-'); static T sta[35]; T top = 0; do sta[top++] = x % 10, x /= 10; while (x); while (top) push(sta[--top] + '0'); }
    template<class T> inline void write(T x, char c) { write(x), push(c); }
    template<typename T, typename... Args> inline void write(const T x, const Args... args) { write(x), write(args...); }
    void file(const string s) { freopen((s + ".in").c_str(), "r", stdin), freopen((s + ".out").c_str(), "w", stdout); }
    template<typename T> IO& operator>>(T& x) { read(x); return *this; }    
    template<typename T> IO& operator<<(const T x) { write(x); return *this; }
};
IO<> io;

ll n, x = 1e8;

int main() {
    io >> n;
	repeat(i, 1, n) io << x << ' ';

    return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 174ms
memory: 4212kb

input:

10000000
236884532 960510424 459370363 104465514 510846237 683874009 658156467 373978916 825348049 124049561 720730391 468844891 167791645 368758675 224232763 265036057 123500430 811258956 939607323 102032071 739242217 910814969 519719227 759909727 931945787 277891507 652666305 765371088 751642911 3...

output:

5498982950384243

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 254ms
memory: 4288kb

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