摘要:
题目: 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 阅读全文
摘要:
题目: 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 阅读全文
摘要:
这道题的话,我拿到题是有点懵圈的,如果要我自己判断的话,我也要自己在纸上建立坐标轴然后一一将点标出,后用肉眼判断。这个用代码实现嘛…… 后来就只能参考大神们的算法啦。 判断方法: 向量a=(x1,y1),b=(x2,y2); 向量的叉积a×b=x1*y2-x2*y1; 当a×b>0时,b在a的逆时针 阅读全文