数学知识:2/n = 1/n + 1/n = 1/n + 1/(n+1) + 1/[n*(n+1)]
code :
#include <iostream>
#include<cstdio>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
if(n==1)
printf("-1\n");
else
printf("%d %d %d\n",n,n+1,n*(n+1));
return 0;
}

Vladik和Chloe比拼数学能力,Vladik声称能将分数2/n表示为三个不同正分数的和。题目要求找到不超过10^9的三个正整数x, y, z,满足2/n = 1/x + 1/y + 1/z,且x, y, z互不相同。如果存在这样的解,输出解;否则输出-1。给定1 ≤ n ≤ 10^4,存在多种可能答案,需要输出任意一组符合条件的x, y, z。"
113613446,10293363,MyBatis3 SQL映射文件详解,"['MyBatis', 'SQL映射', '数据库操作', 'Java开发']
as
a sum of three distinct positive fractions in form
.
.
Because Chloe can't check Vladik's answer if the numbers are large, he asks you to print numbers not exceeding

189

被折叠的 条评论
为什么被折叠?



