酷代码 AI
菜单
服务商

现在有一篇文章,文章只有一行,可能包含数字、大小写英文字母, 各种字符, 不包含空格,请你统计字数。 输入 输入只有一行,即文章内容。文章长度不会超过10000 输出 输出一个整数,即字数。 样例输入 复制 helloworld 样例输出 复制 10

#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; cout << s.length(); return 0; } [2025-12-14 20:06:06 | AI问答 | 37点数解答]

相关提问
发财导航,免费问AI
实用工具查看更多