搜索资源列表
yy
- 给出一个非负小数,找出分子不超过M,分母不超过N的最简分数或整数, 使其最接近给出的小数。如果这个分数不唯一,输出‘TOO MANY’。 输入文件格式(closest.in) 第一行,M,N(1<=M,N<=10^9) 第二行,即小数R,(0<R 输出文件格式(closest.out) 仅一行,若解唯一输出 分子 / 分母(整数K写成K/1),否则输出TOO MANY 样例输入: 360 120 3.1415926536
youxiangtu
- 有n个选手 P 1 ,P 2 ,P 3 ,… ,P n 参加了的单循环赛,每对选手之间非胜即负。现要求求出一个选手序列 P 1 ,P 2 ,P 3 ,… ,P n , 使其满足 P i 胜 P i+ 1 (i=1,… ,n-1) 。-There are n players of P 1, P 2, P 3, ..., P n participated in a single round robin, each of the players that is negative between the
gauss
- 高斯坐标正反算,可以实现由地理坐标与笛卡尔坐标在高斯投影之下的正反算-Positive and negative Gaussian coordinate calculation,