Submission #1048486

# Submission time Handle Problem Language Result Execution time Memory
1048486 2024-08-08T07:53:50 Z European Bad Bitch(#11090) Make them Meet (EGOI24_makethemmeet) C++17
0 / 100
2 ms 860 KB
#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using pi = array<lint, 2>;
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
#define cr(v, n) (v).clear(), (v).resize(n);

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	int n;
	cin >> n;
	// assume root
	vector<vector<int>> seqs;
	{
		for (int i = 1; i < n; i++) {
			vector<int> a(n);
			iota(all(a), 0);
			a[0] = a[i] = 0;
			seqs.push_back(a);
			seqs.push_back(a);
		}
	}
	// ok it's not..
	for (int i = 1; i < n; i++) {
		vector<int> a(n);
		iota(all(a), 0);
		a[0] = a[i] = 0;
		seqs.push_back(a);
		vector<int> b(n);
		b[i] = 1;
		seqs.push_back(b);
		seqs.push_back(b);
		seqs.push_back(a);
	}
	cout << sz(seqs) << "\n";
	for (auto &v : seqs) {
		for (auto &w : v)
			cout << w << " ";
		cout << "\n";
	}
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Incorrect 2 ms 860 KB If people start at 1 and 2, then they can avoid each other
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB If people start at 1 and 2, then they can avoid each other
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB If people start at 0 and 2, then they can avoid each other
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Incorrect 2 ms 860 KB If people start at 1 and 2, then they can avoid each other
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Incorrect 2 ms 860 KB If people start at 1 and 2, then they can avoid each other
5 Halted 0 ms 0 KB -