QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#92177#1. I/O TestJWRuixi200 ✓141ms102180kbC++232.7kb2023-03-30 13:19:582023-03-30 13:20:01

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:20:01]
  • 评测
  • 测评结果:200
  • 用时:141ms
  • 内存:102180kb
  • [2023-03-30 13:19:58]
  • 提交

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[134217728], *iS = ibuf, *iT, obuf[134217728], *oS = obuf;
#define gh() *iS++
#define pc(ch) *oS++ = ch
    inline unsigned read() {
        char ch = gh();
        unsigned 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;

unsigned n;
LL s;

int main () {
	ios::sync_with_stdio(0), cout.tie(0);
	fread(IO::ibuf, 1, 134217728, stdin);
	n = read();
	while (n--) s += read();
	cout << s;
}

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[134217728], *iS = ibuf, *iT, obuf[134217728], *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 (unsigned i = 1; i <= 100000; 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 (unsigned i = 1; i <= 100; i++) flush();
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 141ms
memory: 102180kb

input:

10000000
618567670 698884270 141743386 323861764 697974377 130004379 543715800 871395010 396385737 782701849 300495453 465806958 391727150 824174816 230724567 267087273 137649510 735136818 904425985 697953375 176265291 695242177 564276437 950555530 928645826 523996705 814730993 735616457 509095688 1...

output:

5499299437877162

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 4ms
memory: 4544kb

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