1 条题解

  • 1
    @ 2024-11-24 11:23:53
    #include <iostream>
    #include <string>
    
    int main() {
        std::string title;
        std::getline(std::cin, title);
        
        int count = 0;
        for (char c : title) {
            if (c != ' ' && c != '\n') {
                count++;
            }
        }
        
        std::cout << count << std::endl;
        
        return 0;
    }
    
    • 1

    信息

    ID
    73
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    171
    已通过
    72
    上传者