codeforces 743 C. Vladik and fractions (数学)
来源:互联网 发布:c 构造函数编程例子 编辑:程序博客网 时间:2024/05/17 21:38
想到了 就是水题,想不到那就没法了。
数学知识: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;}
0 0
- codeforces 743 C. Vladik and fractions (数学)
- Codeforces 743C Vladik and fractions(数学)
- 【44.64%】【codeforces 743C】Vladik and fractions
- codeforces 743 C. Vladik and fractions(构造)
- 743C. Vladik and fractions codeforces
- CodeForces-743C Vladik and fractions(构造)
- 【Codeforces 743C Vladik and fractions】
- Codeforces Round #384(Div. 2)C. Vladik and fractions【数学】
- codeforce 743 C. Vladik and fractions (数学构造)
- Codeforces 743C-Vladik and fractions(构造)
- codeforces 743-C. Vladik and fractions(构造)
- Codeforces Round #384 (Div. 2) 743C Vladik and fractions
- 数学题(Vladik and fractions,743C)
- Codeforces Round #384 (Div. 2) C Vladik and fractions
- Codeforces Round #384 (Div. 2)-C. Vladik and fractions
- Codeforces Round #384 (Div. 2) C. Vladik and fractions
- Codeforces Round #384 (Div. 2) C. Vladik and fractions
- codeforces #384 Vladik and fractions (构造算法)
- Runnable和Thread的区别
- eclipse编译xml文件完成后还是原来的内容
- TCP和UDP的区别(转)
- swift3.0中@escaping 和 @noescape 的含义
- 查询linux目录下边 特定文件中 特定内容
- codeforces 743 C. Vladik and fractions (数学)
- C++调用Python方法
- 《JAVA与模式》之工厂方法模式
- php-fpm中启用慢日志配置
- 更改ios顶部状态栏字体颜色
- 子元素相对祖先元素居中显示
- unix 编程随笔
- HTML5触摸事件touch监听
- Entitlements 延伸