QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#92175#1. I/O TestJWRuixi200 ✓83ms102572kbC++142.6kb2023-03-30 13:16:212023-03-30 13:16:24

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-30 13:16:24]
  • 评测
  • 测评结果:200
  • 用时:83ms
  • 内存:102572kb
  • [2023-03-30 13:16:21]
  • 提交

config.txt

10000000
10000000

input_test

#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#define LL long long
#define writesp(x) write(x), pc(' ')
#define writeln(x) write(x), pc('\n')
#define FileIO(ch) freopen(ch".in", "r", stdin), freopen(ch".out", "w", stdout)
using namespace std;

namespace IO {
    char ibuf[200000000], *iS = ibuf, *iT, obuf[200000000], *oS = obuf;
#define gh() *iS++
#define pc(ch) *oS++ = ch
    inline int read() {
        char ch = gh();
        int x = 0;
        while (ch < '0' || ch > '9') ch = gh();
        while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
        return x;
    }
    inline void flush () {
    	fwrite(obuf, 1, oS - obuf, stdout);
	}
	template<typename _Tp>
    inline void write (_Tp x) {
    	static char stk[64], *tp = stk;
    	if (x < 0) x = ~(x - 1), pc('-');
		do *tp++ = x % 10, x /= 10;
		while (x);
		while (tp != stk) pc((*--tp) | 48);
    }
}

using IO::read;
using IO::write;
using IO::flush;

int n;
LL s;

int main () {
	fread(IO::ibuf, 1, 200000000, stdin);
	n = read();
	while (n--) s += read();
	write(s), flush();
}

output_test

#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#define LL long long
#define writesp(x) write(x), pc(' ')
#define writeln(x) write(x), pc('\n')
#define FileIO(ch) freopen(ch".in", "r", stdin), freopen(ch".out", "w", stdout)
using namespace std;

namespace IO {
    char ibuf[100000000], *iS = ibuf, *iT, obuf[200000000], *oS = obuf;
#define gh() *iS++
#define pc(ch) *oS++ = ch
    inline int read() {
        char ch = gh();
        int x = 0;
        while (ch < '0' || ch > '9') ch = gh();
        while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
        return x;
    }
    inline void flush () {
    	fwrite(obuf, 1, oS - obuf, stdout);
	}
	template<typename _Tp>
    inline void write (_Tp x) {
    	static char stk[64], *tp = stk;
    	if (x < 0) x = ~(x - 1), pc('-');
		do *tp++ = x % 10, x /= 10;
		while (x);
		while (tp != stk) pc((*--tp) | 48);
    }
}

using IO::read;
using IO::write;
using IO::flush;

int main () {
	for (int i = 1; i <= 50000; i++) *reinterpret_cast<unsigned*>(IO::oS) = '0001', *reinterpret_cast<unsigned*>(IO::oS + 4) = '0000', *reinterpret_cast<unsigned*>(IO::oS + 8) = '\n0', IO::oS += 10;
	for (int i = 1; i <= 200; i++) flush();
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 83ms
memory: 102572kb

input:

10000000
509588839 577302827 673796268 556744193 579834973 268108273 536684093 852024726 462553120 645240179 110306076 969155942 412887720 872829118 765368860 188971460 685249461 391552913 713485060 809444953 865273665 366275754 737860856 138767889 989294014 114139433 695249811 649110318 764954348 1...

output:

5500538417074189

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 0ms
memory: 3844kb

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