Trying to end infinite argue about ideal i/o methods in cpc…
Test Platform
暗影精灵3 15-ce005tx
- i5-7300HQ , 4 cores 4 threads 2.5GHZ up to 3.5 GHZ, 6MB L3 cache
- 8MB DDR4 2400MHZ
- GTX 1050Ti
- SAMSUNG MZVLW128HEGR-000H1
Result
不想详细整理了,知道结论就可以了。
getchar_unlocked > getchar >> scanf > cin(sync off) >> cin(sync on)
putchar_unlocked > putchar ≈ printf ≈ cout(sync off, \n not endl) >> cout(endl)
本作品使用基于以下许可授权:Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.