Closed ikr closed 1 month ago
Thank you for using this library!
For AtCoder, proconio is actually available in their judging environment, so you can simply use proconio::input! without needing to copy-paste anything.
For platforms that don't support proconio, you can use the original macro by tanakh. Proconio was inspired by this macro, so the interface is almost identical (though it lacks some features found in proconio). The macro implementation can be found here. The article is in Japanese, but you should be able to locate the code snippet.
While it's technically possible to carefully copy-paste macros from the proconio source code (except for proc-macros), this isn't the intended usage of the library. It would be very difficult, and I don't recommend it.
I know some people (including myself) use their own bundlers, but as far as I'm aware, most of these are created mainly for personal use. Unfortunately, I don't know enough about them to provide a comprehensive list here.
Thanks a bunch, @statiolake, that's such a useful answer! I've bookmarked tanakh's snippet. Also great news about AtCoder judge supporting proconio. I'm beginning to suspect that AtCoder judge may even support the ac-library-rs… It does, doesn't it? AtCoder's just the best!
I'm glad to hear that!
After doing some research, I found a list describing the AtCoder judge environment: https://img.atcoder.jp/file/language-update/language-list.html According to this, ac-library-rs is available in the AtCoder judging environment.
Let's close this issue for now.
The API is beautiful, thank you for this tool! I used it in this year's FB HackerCup, where I didn't have to combine all the code into a single source file before submitting it. What do other people do when participating in Codeforces or AtCoder competitions? Do they use an auto-inline script, or copy/paste the
./src/lib.rs
?