摘要:
leetcode 874 Robot Simulation 限制:32MB, 1s 描述 A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three po 阅读全文
摘要:
Problem Description A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new co 阅读全文
摘要:
How to calculate two coordinates of the intersection points of two circles? 题目: 给定两个圆的的方程 (x-x1)^2+(y-y1)^2=r1^2, (x-x2)^2+(y-y2)^2=r2^2 求解两个圆的交点坐标。 这 阅读全文
摘要:
题目介绍: Matrix Power Series Time Limit: 3000MS Memory Limit: 131072K Total Submissions: 25225 Accepted: 10427 Description Given a n × n matrix A and a p 阅读全文
摘要:
题目描述 Google Code Jam 2008APAC local onsites C 最开始你有X元钱,要进行M轮赌博。每一轮赢的概率为P,你可以选择赌与不赌,如果赌也可以将所持的任意一部分钱作为赌注(可以是整数,也可以是小数)。如果赢了,赌注将翻倍;输了赌注则没了。在M轮赌博结束后,如果你持 阅读全文