<codeforces>Little Elephant and Sorting
来源:互联网 发布:网络爬虫书籍推荐 编辑:程序博客网 时间:2024/04/30 10:25
#include <iostream>using namespace std;int main(){ int n,a,b; long long int add; while(cin>>n>>a) { add=0; while(--n) { cin>>b; if(a>b) { add+=a-b; } a=b; } cout<<add<<endl; } return 0;}
- <codeforces>Little Elephant and Sorting
- Codeforces Round #129 (Div. 2) B. Little Elephant and Sorting
- codeforces 258D Little Elephant and Broken Sorting
- Codeforces 258D Little Elephant and Broken Sorting
- B. Little Elephant and Sorting
- CF 205B Little Elephant and Sorting
- Codeforces 258D Little Elephant and Broken Sorting (逆序对,概率)
- Codeforces-258D:Little Elephant and Broken Sorting(概率DP)
- <codeforces>A. Little Elephant and Rozdil
- Codeforces 220B Little Elephant and Array
- codeforces 220c Little Elephant and Shifts
- CodeForces 220A Little Elephant and Problem
- CodeForces 220B Little Elephant and Array
- codeforces 204A Little Elephant and Interval
- CodeForces 204B - Little Elephant and Cards
- codeforces 204B- Little Elephant and Cards
- codeforces 221D Little Elephant and Array
- codeforces 221B Little Elephant and Numbers
- vs下创建并调用DLL--简单例子
- 虚函数的特性
- android网易顶部导航栏demo
- 资源监控_自己编写一个nmon
- #include<reg51.h>点亮一排led
- <codeforces>Little Elephant and Sorting
- hibernate入门的第一个例子
- 基于方案的数据库设计构想
- hdu1596 find the safest road 最短路dijkstra
- Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tool
- SD/MMC存储器启动方案在SoC中的设计与实现
- 书法作品中印章的使用
- vc error table(summary by myself)
- 问题1:导入进来的工程看不到layout布局文件的预览窗口??