QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#388923 | #1. I/O Test | georgeyucjr | Compile Error | / | / | C++20 | 916b | 2024-04-13 21:32:14 | 2024-04-13 21:32:15 |
Judging History
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