【C++】leetcode竞赛笔记

20200517双周赛:

1  to_string(int a)    将a转换成字符串形式

2  gcd(int a,int  b)    返回a,b的最大公约数,若返回1则表示a/b不可再约分

3  string +       字符串可以直接用+号来连接

4  vector<vector<int> > vec(N, vector<int>(M));

             建立二维 数组

猜你喜欢

转载自www.cnblogs.com/LPworld/p/12903203.html