Download docker_space/frontier_cs_2/examples/gpt5.cpp from JustinTX/shinka-backup: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/JustinTX/shinka-backup/resolve/main/docker_space/frontier_cs_2/examples/gpt5.cpp
- Command line
-
hf download hf://JustinTX/shinka-backup/docker_space/frontier_cs_2/examples/gpt5.cpp
-
curl -L -o gpt5.cpp https://huggingface.co/JustinTX/shinka-backup/resolve/main/docker_space/frontier_cs_2/examples/gpt5.cpp
552 Bytes
| using namespace std; | |
| int main() { | |
| ios::sync_with_stdio(false); | |
| cin.tie(nullptr); | |
| int n; | |
| if (!(cin >> n)) return 0; | |
| vector<int> rest; | |
| int x; | |
| while (cin >> x) rest.push_back(x); | |
| vector<int> perm(n); | |
| if ((int)rest.size() >= n) { | |
| for (int i = 0; i < n; ++i) perm[i] = rest[i]; | |
| } else { | |
| for (int i = 0; i < n; ++i) perm[i] = i + 1; | |
| } | |
| cout << 1; | |
| for (int i = 0; i < n; ++i) cout << " " << perm[i]; | |
| cout << "\n"; | |
| cout.flush(); | |
| return 0; | |
| } |