一定得用scanf,scanf和cin的耗时不同,效率相差0.66倍。具体差别看这里:
https://baike.baidu.com/item/cin/1931555?fr=aladdin
https://baike.baidu.com/item/scanf/10773316?fr=aladdin
https://www.cnblogs.com/limera/p/5405705.html
以下为源代码:
https://paste.ubuntu.com/p/kZ3FvWH892/
04-25
1480