2 条题解

  • 1
    @ 2024-7-17 9:42:13
    #include <iostream>
    #include <sstream>
    #include <string>
    #include <algorithm>
    //也可以用include<bits/stdc++.h>
    using namespace std;
    
    int main() 
    {
        string s;
        
        getline(cin, s);
        
        istringstream iss(s);
        string word;
        
        while (iss >> word) 
        {
            reverse(word.begin(), word.end());
            cout << word << endl;
        }
        
        return 0;
    }
    

    加油

    信息

    ID
    172
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    (无)
    递交数
    16
    已通过
    9
    上传者