main
黄海 1 year ago
parent 32147d8eb0
commit e984cd6285

@ -0,0 +1,9 @@
#include <bits/stdc++.h>
using namespace std;
// Hello world
int main() {
char s[15];
cin >> s; // 原因Hello world中存在空格而cin会只读取前半部分Hello,所以长度是5
cout << strlen(s);
return 0;
}
Loading…
Cancel
Save