Download algorithmic/problems/121/chk.cc from FrontierCS/Frontier-CS: direct link, hf CLI and curl.
- Browser
- Download file 256 Bytes
-
https://huggingface.co/datasets/FrontierCS/Frontier-CS/resolve/f2ca24c19faf7d1b79faeb1196b3ef6412800303/algorithmic/problems/121/chk.cc
- Command line
-
hf download hf://datasets/FrontierCS/Frontier-CS@f2ca24c19faf7d1b79faeb1196b3ef6412800303/algorithmic/problems/121/chk.cc
-
curl -L -o chk.cc https://huggingface.co/datasets/FrontierCS/Frontier-CS/resolve/f2ca24c19faf7d1b79faeb1196b3ef6412800303/algorithmic/problems/121/chk.cc
256 Bytes
| int main(int argc, char* argv[]) { | |
| registerTestlibCmd(argc, argv); | |
| double ratio = std::max(1 - 10 * std::abs(ouf.readDouble() / ans.readDouble() - 1), 0.); | |
| quitp(ratio, "Ratio: %.4f", ratio); | |
| return 0; | |
| } |