A.Fraction 思路:暴力 AC代码: B.Maxim Buys an Apartment AC代码: C.Planning AC代码: ...
分类:
其他好文 时间:
2017-09-13 23:19:40
阅读次数:
192
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5912 Problem Description Mr. Frog recently studied how to add two fractions up, and he came up with an ...
分类:
其他好文 时间:
2017-09-13 00:31:44
阅读次数:
292
Problem Description Mr. Frog recently studied how to add two fractions up, and he came up with an evil idea to trouble you by asking you to calculate ...
分类:
其他好文 时间:
2017-09-13 00:23:39
阅读次数:
267
A题 Fraction 暴力枚举 无思维难度 无坑点 1 #include <cstdio> 2 #include <algorithm> 3 using namespace std; 4 int n,Mi,Mj; 5 double Max,now; 6 int main(){ 7 scanf("% ...
分类:
其他好文 时间:
2017-09-08 20:40:35
阅读次数:
261
题意:2个数A,B,A+B==n,并且A<B,问最大的A/B是多少,A与B互质 ...
分类:
其他好文 时间:
2017-09-07 19:33:38
阅读次数:
152
Petya is a big fan of mathematics, especially its part related to fractions. Recently he learned that a fraction is called proper iff its numerator is ...
分类:
其他好文 时间:
2017-09-07 13:24:43
阅读次数:
184
题目链接:Codeforces Round #433 (Div. 2) codeforces 854 A. Fraction【水】 题意:已知分子与分母的和,求分子小于分母的 最大的最简分数。 1 #include <iostream> 2 #include <cstdio> 3 #include ...
分类:
其他好文 时间:
2017-09-07 10:04:40
阅读次数:
202
It is easy to see that for every fraction in the form(k > 0), we can always find two positive integers x and y,x ≥ y, such that: Now our question is: ...
分类:
其他好文 时间:
2017-09-07 00:51:20
阅读次数:
236
// // main.m // cmdTry // // Created by Calos Chen on 2017/8/21. // Copyright © 2017年 Calos Chen. All rights reserved. // #import @class Fraction; @in... ...
分类:
其他好文 时间:
2017-08-21 17:25:10
阅读次数:
176
Fraction Accepted : 124 Submit : 806 Time Limit : 1000 MS Memory Limit : 65536 KB Fraction Problem Description: Everyone has silly periods, especially ...
分类:
其他好文 时间:
2017-08-12 12:45:01
阅读次数:
220