摘要:
Given two strings a and b of equal length, what's the longest string (s) that can be constructed such that it is a child of both? A string x is said t 阅读全文
摘要:
Some viruses replicate by replacing a piece of DNA in a living cell with a piece of DNA that the virus carries with it. This makes the cell start to p 阅读全文
摘要:
题目: After years of success with a single-button mouse, a well known computer company has decided to offer a similarly simplified interface for the key 阅读全文
摘要:
题目: 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的逆时针 阅读全文
摘要:
题目: The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of t 阅读全文