Created
December 6, 2025 03:39
-
-
Save Grabber/cd2729172c77a6eaf00563b59ca7d5cf to your computer and use it in GitHub Desktop.
C/C++: unsync stdio and untie cin/cout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| // g++ main.cc -o main; ./main | |
| static const auto fast = [](){ | |
| std::ios::sync_with_stdio(false); | |
| std::cin.tie(nullptr); | |
| return 0; | |
| }(); | |
| int main(int argc, char const *argv[]) | |
| { | |
| std::cout << "fast" << std::endl; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment