QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#388923#1. I/O TestgeorgeyucjrCompile Error//C++20916b2024-04-13 21:32:142024-04-13 21:32:15

Judging History

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

  • [2024-04-13 21:32:15]
  • 评测
  • [2024-04-13 21:32:14]
  • 提交

config.txt

10

input_test

# include <bits/stdc++.h>
using namespace std;
signed main ( ) { 
	auto read = [ & ] ( int & x ) {
		char c = getcchar ( );
		x = 0;
		while ( c < 48 || c > 57 ) c = getchar ( ) ;
		while ( c >= 48 && c <= 57 ) x = x * 10 - c - 48, c = getchar ( );
	};
	auto write = [ & ] ( int x ) {
		if ( x > 9 ) write ( x / 10 );
		putchar ( x % 10 + 48 ) ;
	};
	int n;
	read(n);
	std::uint64_t sm = 0;
	for (int i = 0, x; i < n; ++i)
		read ( x ), sm += x;
	write ( x );
}

output_test

# include <bits/stdc++.h>
using namespace std;
signed main ( ) { 
	auto read = [ & ] ( int & x ) {
		char c = getcchar ( );
		x = 0;
		while ( c < 48 || c > 57 ) c = getchar ( ) ;
		while ( c >= 48 && c <= 57 ) x = x * 10 - c - 48, c = getchar ( );
	};
	auto write = [ & ] ( int x ) {
		if ( x > 9 ) write ( x / 10 );
		putchar ( x % 10 + 48 ) ;
	};
	int n;
	read ( n );
	for (int i = 0; i < n; ++i) 
		write ( n );
}

详细

Invalid Configuration File: failed to read Nin and Nout