2015年7月22日
摘要: Ahttp://acm.hdu.edu.cn/showproblem.php?pid=5112输入n个时刻和位置,问那两个时刻间速度最快。解法:按照时间排序,然后依次求相邻两个之间的速度,速度=ds/dt 1 #include 2 #include 3 using namespace std; 4 ... 阅读全文
posted @ 2015-07-22 16:37 gaolzzxin 阅读(183) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/100548A 签到问一个序列是不是yes,yes的序列满足每个数都是3的倍数。 1 #include 2 int main(){ 3 int t,n,x; 4 while(~scanf("%d",&t)){ 5 i... 阅读全文
posted @ 2015-07-22 14:59 gaolzzxin 阅读(199) 评论(0) 推荐(0) 编辑