会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wdan2016
博客园
首页
新随笔
联系
订阅
管理
2017年5月4日
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数P。并将P对1000000007取模的结果输出。 即输出P%1000000007
摘要: include "stdafx.h" include include include include include using namespace std; class Solution { public: long long nums = 0; int InversePairs(vector d
阅读全文
posted @ 2017-05-04 14:13 wdan2016
阅读(2454)
评论(0)
推荐(0)
公告