摘要: 1 class Solution { 2 public: 3 vector<double> dicesProbability(int n) { 4 int dp[n+1][70]; 5 memset(dp,0,sizeof(dp)); 6 for(int i=1;i<=6;i++)dp[1][i]= 阅读全文
posted @ 2022-01-06 21:59 matt-11 阅读(33) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 public: 3 int reversePairs(vector<int>& nums) { 4 int n=nums.size(); 5 int a[n+1]; 6 function<int(int,int)>merge=[&](int l,int r) 阅读全文
posted @ 2022-01-06 21:08 matt-11 阅读(44) 评论(0) 推荐(0)