摘要: 题目: Change one letter of the name. Add a letter to the end of the name. Input Output Output the number of changes they need to make. Limits The length 阅读全文
posted @ 2018-02-25 23:50 TRACYlegolas 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目: The gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players have a rank 阅读全文
posted @ 2018-02-25 19:38 TRACYlegolas 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 这道题的话,我拿到题是有点懵圈的,如果要我自己判断的话,我也要自己在纸上建立坐标轴然后一一将点标出,后用肉眼判断。这个用代码实现嘛…… 后来就只能参考大神们的算法啦。 判断方法: 向量a=(x1,y1),b=(x2,y2); 向量的叉积a×b=x1*y2-x2*y1; 当a×b>0时,b在a的逆时针 阅读全文
posted @ 2018-02-25 16:49 TRACYlegolas 阅读(129) 评论(0) 推荐(0) 编辑