Codeforces 492A Vanya and Cubes(水)
来源:互联网 发布:苹果7翻译软件 编辑:程序博客网 时间:2024/06/11 18:31
题目链接:Codeforces 492A Vanya and Cubes
#include <cstdio>#include <cstring>#include <algorithm>using namespace std;int main () {int n, s = 0;scanf("%d", &n);for (int i = 1; i; i++) {s += i;if (n < s) {printf("%d\n", i - 1);break;} elsen -= s;}return 0;}
0 0
- Codeforces 492A. Vanya and Cubes 水
- Codeforces 492A Vanya and Cubes(水)
- CodeForces 492A Vanya and Cubes
- Codeforces 492A Vanya and Cubes【水题】
- 492A - Vanya and Cubes
- 492A - Vanya and Cubes
- CodeForces 492A Vanya and Cubes(水题)
- codeforces——492A——Vanya and Cubes
- Codeforces Vanya and Cubes
- A. Vanya and Cubes
- A - Vanya and Cubes
- Codefroces 280 div2 A. Vanya and Cubes
- CF 280A. Vanya and Cubes(div2)
- Codeforces Round #280 (Div. 2)---A. Vanya and Cubes (规律 + 暴力)
- Codeforces Round #280 (Div. 2)A. Vanya and Cubes(简单计算)
- Vanya and Cubes
- codeforces A. Vanya and Cards
- Codeforces 492B Vanya and Lanterns(水)
- mysql学习笔记----数据类型,属性,约束
- python打印九九乘法表
- Android学习——在Android中使用OpenCV的第一个程序
- Extjs之HelloWorld
- Android调用WebService(图文教程)
- Codeforces 492A Vanya and Cubes(水)
- 使用StarUML创建类图
- 开发总结
- ubuntu64位hadoop2.2.0全分布安装部署
- 条码生成器
- 真实的阎锡山:抗战功臣兼模范省长
- Codeforces 492B Vanya and Lanterns(水)
- 14.04ubuntu 源文件
- WP开发入门指南:如何学习WP开发?