#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cout<<sizeof("luogunb")-1; }
将字符串套入sizeof再减一,就能求出长度。 这是为啥?