Educational Codeforces Round 24A Diplomas and Certificates
来源:互联网 发布:php继承 编辑:程序博客网 时间:2024/06/06 09:04
写个不等式就出来了
#include <bits/stdc++.h>using namespace std;typedef long long ll;ll n,k;ll half,oh;int main(){ cin >> n >> k; half = n/2; ll w = half/(k+1); ll z = k*w; cout << w << " " << z << " " << n-z-w << endl; return 0;}
阅读全文
1 0
- Educational Codeforces Round 24A Diplomas and Certificates
- Codeforces 818A Diplomas and Certificates
- Diplomas and Certificates (Codeforces
- CF818A-Diplomas and Certificates
- Diplomas and Certificates
- Codeforces Round #311 (Div. 2)A Ilya and Diplomas
- Codeforces Round #311 (Div. 2) A. Ilya and Diplomas
- A. Ilya and Diplomas( Codeforces Round #311 (Div. 2) )
- codeforces A. Ilya and Diplomas
- CodeForces#311 A. Ilya and Diplomas
- Codeforces 557A Ilya and Diplomas 【水题】
- CodeForces 557A-Ilya and Diplomas【模拟】
- CodeForces 557A Ilya and Diplomas
- CodeForces - 557A Ilya and Diplomas
- CodeForces 557A Ilya and Diplomas
- 【55.70%】【codeforces 557A】Ilya and Diplomas
- Educational Codeforces Round 9 -- A - Grandma Laura and Apples
- Educational Codeforces Round 9-A. Grandma Laura and Apples(模拟)
- 常用<meta>整理
- java中一维数组的使用(初级)
- C语言 指针 详解 三 C语言数组指针(指向数组的指针)
- Numpy-创建数组
- Leetcode--189. Rotate Array
- Educational Codeforces Round 24A Diplomas and Certificates
- Log4j配置详解
- Liferay是什么?
- Logstash 使用详解
- CakePhp创建项目,composer及常用包的安装
- Java 反射机制
- Java设计模式的归纳及练习
- 一个scrapy爬虫例子
- bzoj 4923: K小值查询 splay