Download docker_space/frontier_cs_4/examples/gpt5.1.cpp from JustinTX/shinka-backup: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/JustinTX/shinka-backup/resolve/main/docker_space/frontier_cs_4/examples/gpt5.1.cpp
- Command line
-
hf download hf://JustinTX/shinka-backup/docker_space/frontier_cs_4/examples/gpt5.1.cpp
-
curl -L -o gpt5.1.cpp https://huggingface.co/JustinTX/shinka-backup/resolve/main/docker_space/frontier_cs_4/examples/gpt5.1.cpp
503 Bytes
| using namespace std; | |
| int main() { | |
| ios::sync_with_stdio(false); | |
| cin.tie(nullptr); | |
| int n; | |
| long long k; | |
| if (!(cin >> n >> k)) return 0; | |
| vector<long long> v; | |
| v.reserve(1LL * n * n); | |
| for (int i = 0; i < n; ++i) { | |
| for (int j = 0; j < n; ++j) { | |
| long long x; | |
| cin >> x; | |
| v.push_back(x); | |
| } | |
| } | |
| nth_element(v.begin(), v.begin() + (k - 1), v.end()); | |
| cout << v[k - 1] << '\n'; | |
| return 0; | |
| } |