| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1357297 | mxhrvs | Monster-Go (EGOI25_monstergo) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
const int m = 50;
const int k = 12;
for (int i = 0; i < n; ++i) {
vector<int> v;
int s = (i * 12) % m;
for (int j = 0; j < k; ++j) {
int a = (s + j) % m;
v.push_back(a);
}
sort(v.begin(), v.end());
for (int i = 0; i < k; ++i) {
cout << v[i] << " ";
}
cout << "\n";
}
return 0;
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
