P8611

P8611 [蓝桥杯 2014 省 AB] 蚂蚁感冒

这道题采用贪心,两只蚂蚁相互传染后再同时掉头走,相当于穿过了对方,若无其事地走,并不会影响最后感冒的传播结果。 #include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <queue> u ......
蓝桥 蚂蚁 P8611 8611 2014
共1篇  :1/1页 首页上一页1下一页尾页