救民于水火

x-hechengye 2022-08-11 16:22:29 34 返回题目

#include <bits/stdc++.h> 
using namespace std;

int main() { char a[105];

int i, c = 0;

gets(a);

for (i = 0; a[i]; i++) {

    if (a[i] != ' ') {

        c++;

    }

}

cout << c;

return 0;
}

{{ vote && vote.total.up }}