作业帮笔试算法题:1、解析url#include <iostream>#include<map>#include<sstream>#include <string>using namespace std;map<string, string> parseUri(string uri) { map<string, string> m; int start = uri.find(&quot;?&quot;); string quary = uri.substr(start + 1); stringstream ss(quary); string pair; while (getline(ss,pair,'&amp;')) { int equalSign = pair.find('='); if (equalSign != string::npos){ string key = pair.substr(0, equalSign); string val = pair.substr(equalSign+1); m[key] = val; } } return m;}int main() { string uri, key; cin >> uri >> key; map<string, string> m; m = parseUri(uri); cout << m[key]<<endl; return 0;}2、数组三个数最大乘积排序、max(最大三个数相乘,最小两个数相乘再乘最大的数)3、小红的彩带