492A - Vanya and Cubes
来源:互联网 发布:linux注销登录用户命令 编辑:程序博客网 时间:2024/06/07 23:41
#include <cmath>#include <cstdio>#include <cstdlib>#include <cstring>#include <iostream>#include <string>#include <vector>#include <queue>#include <algorithm>using namespace std;int arr[201], sum[201];int main() { arr[0] = 0; for(int i = 1; i < 201; ++i) { arr[i] = arr[i-1]+i; } sum[0] = 0; for(int i = 1; i < 201; ++i) { sum[i] = sum[i-1] + arr[i]; } int n; int id = 0; cin >> n; while(n >= sum[id]) id++; cout << id - 1 << endl; return 0;}
0 0
- 492A - Vanya and Cubes
- 492A - Vanya and Cubes
- A. Vanya and Cubes
- A - Vanya and Cubes
- Codeforces 492A. Vanya and Cubes 水
- Codeforces 492A Vanya and Cubes(水)
- CodeForces 492A Vanya and Cubes
- Codeforces 492A Vanya and Cubes【水题】
- CodeForces 492A Vanya and Cubes(水题)
- codeforces——492A——Vanya and Cubes
- Codefroces 280 div2 A. Vanya and Cubes
- CF 280A. Vanya and Cubes(div2)
- Vanya and Cubes
- Codeforces Vanya and Cubes
- Codeforces Round #280 (Div. 2)---A. Vanya and Cubes (规律 + 暴力)
- Codeforces Round #280 (Div. 2)A. Vanya and Cubes(简单计算)
- A. Vanya and Cards
- A. Vanya and Cards
- Services 翻译第二集
- Android常用组件
- Android 中的导入(import)出错
- Android 监听开机广播启动服务 动态注册时间变化监听广播
- stm,IDE资料
- 492A - Vanya and Cubes
- 解决SQL Server 2008安装时提示:重新启动计算机失败的方法
- oracle 字符串split转换成列表格
- linux下如何同时运行服务端和客户端程序
- Bkav联网防火墙绕过漏洞
- 关于P/Invoke(3)
- 什么是PCB变压器
- 关于Keil打开未响应卡死的问题
- HDU 2535 Vote 简单排序