https://codeforces.com/blog/entry/15643
scanf
scanf("%c",&c);
You can enter a line break
scanf("%s",s+1);
does not read the newline
pair<int,int> p;
p = {3,4};
vector<int>v;
v = {3,4,5,6};
tuple
tuple<int,int,int> t;
t = {1,2,3};
int x = get<1>(t);
cout<<x<<endl;
builtin
int x = __builtin_ffs(16);//返回最低位1的位置
int y = __builtin_ctz(16);//返回尾0的个数
int z = __builtin_popcount(x);//返回1的个数
Output
for(i = 1; i <= n; i++)
for(j = 1; j <= m; j++)
cout << a[i][j] << " \n"[j == m];
pow
Today, in the long long range call pow function, then the WA
This changed too, to be resolved
ll p(ll a,ll b){
ll ans = 1;
for(ll i=1;i<=b;i==){
ans*=a;
}
return ans;
}