QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#92179#1. I/O TestJWRuixi200 ✓78ms101056kbC++232.3kb2023-03-30 13:22:172023-03-30 13:22:22

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

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[20], *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 () {
	fread(IO::ibuf, 1, 134217728, 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 obuf[200000000], *oS = obuf;
#define pc(ch) *oS++ = ch
    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::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();
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 78ms
memory: 101056kb

input:

10000000
718955064 413360212 537931548 748472549 477110275 911120433 557942237 863612933 809811102 892968065 615520656 972867391 221307408 462503531 860854959 934603498 206017053 667232764 216363789 770214262 168742367 586823079 800600569 313770946 687914291 585079111 892593786 760336949 515931730 3...

output:

5499497063489360

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 2ms
memory: 5696kb

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