QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#92176#1. I/O TestJWRuixi200 ✓83ms101548kbC++232.6kb2023-03-30 13:17:082023-03-30 13:17:10

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:17:10]
  • 评测
  • 测评结果:200
  • 用时:83ms
  • 内存:101548kb
  • [2023-03-30 13:17:08]
  • 提交

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[150000000], *iS = ibuf, *iT, obuf[150000000], *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, 150000000, 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: 101548kb

input:

10000000
758570032 275454351 141698232 408863346 801695340 266108405 136602844 444734814 558424581 267005056 137619320 240060135 584033732 941172530 218025127 352226499 618732767 192034031 385660301 180600131 621161191 511031994 301607527 544868891 214106362 261123764 492063222 105822159 188800229 8...

output:

5498091846200446

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 10ms
memory: 3884kb

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