QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#644590#6418. Ah, It's Yesterday Once Morerush-from-behind#WA 0ms3564kbC++232.4kb2024-10-16 14:42:362024-10-16 14:42:37

Judging History

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

  • [2024-10-16 14:42:37]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3564kb
  • [2024-10-16 14:42:36]
  • 提交

answer

// MagicDark
#include <bits/stdc++.h>
#define debug cerr << "\33[32m[" << __LINE__ << "]\33[m "
#define SZ(x) ((int) x.size() - 1)
#define all(x) x.begin(), x.end()
#define ms(x, y) memset(x, y, sizeof x)
#define F(i, x, y) for (int i = (x); i <= (y); i++)
#define DF(i, x, y) for (int i = (x); i >= (y); i--)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
template <typename T> T& chkmax(T& x, T y) {return x = max(x, y);}
template <typename T> T& chkmin(T& x, T y) {return x = min(x, y);}
template <typename T> T& read(T &x) {
	x = 0; int f = 1; char c = getchar();
	for (; !isdigit(c); c = getchar()) if (c == '-') f = - f;
	for (; isdigit(c); c = getchar()) x = (x << 1) + (x << 3) + (c ^ 48);
	return x *= f;
}
// const int dx[4] = {0, 1, 0, - 1};
// const int dy[4] = {1, 0, -1, 0};
// bool st[25][25];
string st[] = {
"1110111011101110111",
"0010101010101010101",
"1110101010101010101",
"1000101010101010101",
"1111101010101010101",
"0000001010101010101",
"1111111010101010101",
"1000000010101010101",
"1111111110101010101",
"0000000000101010101",
"1111111111101010101",
"1000000000001010101",
"1111111111111010101",
"0000000000000010101",
"1111111111111110101",
"1000000000000000101",
"1111111111111111101",
"0000000000000000001",
"1111111111111111111"
};
signed main() {
	cout << 19 << ' ' << 19 << '\n';
	F(i, 1, 19) {
		cout << st[i - 1];
		cout << '\n';
	}
	// cout << 20 << ' ' << 20 << '\n';
	// F(i, 1, 20) {
	// 	F(j, 1, 20) {
	// 		if (i % 2 == 1 || (j == 20 && i % 4 == 2) || (j == 1 && i % 4 == 0)) cout << 1;
	// 		else cout << 0;
	// 	}
	// 	cout << '\n';
	// }
	// F(i, 1, 20)
	// 	F(j, 1, 20)
	// 		st[i][j] = 0;
	// int cur = 0;
	// int tx = 1, ty = 1;
	// bool flag = false;
	// while (true) {
	// 	if (tx + dx[cur] * 2 >= 1 && ty + dy[cur] * 2 >= 1 && st[tx + dx[cur] * 2][ty + dy[cur] * 2] == 1) {
	// 		cur = (cur + 1) % 4;
	// 		if (flag) break;
	// 		flag = true;
	// 		continue;
	// 	}
	// 	// debug << tx << " " << ty << " " << cur << endl;
	// 	if (st[tx][ty]) break;
	// 	flag = false;
	// 	st[tx][ty] = 1;
	// 	if (tx + dx[cur] > 20 || tx + dx[cur] < 1 || ty + dy[cur] < 1 || ty + dy[cur] > 20) {
	// 		cur = (cur + 1) % 4;
	// 	}
	// 	tx += dx[cur], ty += dy[cur];
	// 	flag = false;
	// }
	// st[11][10] = 0;
	// F(i, 1, 20) {
	// 	F(j, 1, 20)
	// 		cout << st[i][j];
	// 	cout << '\n';
	// }
	return 0;
}
/* why?
*/

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3564kb

input:



output:

19 19
1110111011101110111
0010101010101010101
1110101010101010101
1000101010101010101
1111101010101010101
0000001010101010101
1111111010101010101
1000000010101010101
1111111110101010101
0000000000101010101
1111111111101010101
1000000000001010101
1111111111111010101
0000000000000010101
11111111111111...

result:

wrong answer 46 successful hack.