xehoth / xehoth-blog-comment

0 stars 0 forks source link

20161105测试总结 | xehoth #165

Open xehoth opened 7 years ago

xehoth commented 7 years ago

https://blog.xehoth.cc/20161105/

T1直接贪心,对输入数据排序,每次选价格最高的三本书进行购买即可,因为只有这样才能取到能免费的书中最贵的。 1234567891011121314151617181920212223242526272829#include <cctype>#include <cstdio>#include <algorithm>#include <iostream>