Commit 2d32468
authored
added faster input output method for cin and cout.
If we compare "printf/scanf" with cout/cin, cout/cin are slower than "printf/scanf". The speed difference is largely due to the iostream I/O functions maintaining synchronization with the C I/O functions. We can turn this off with a call to std::ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);1 parent 86d001a commit 2d32468
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments