📅  最后修改于: 2022-03-11 14:44:51.636000             🧑  作者: Mango
// my linkedin : https://www.linkedin.com/in/vaalarivan-prasanna-3a07bb203/
cout << distance(vec.begin(), max_element(vec.begin(), vec.end()));