因为使用sacnf和printf不是很多,还是习惯使用cin和cout。 这道题目输入因为有格式,自然就使用了scanf输入。
一定要注意:
ios::sync_with_stdio(0); cin.tie(0);cout.tie(0);
和
scanf printf
不要混合使用