2 solutions

  • 1
    @ 2025-7-15 16:19:54

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

    int main() { cin>>s; cout<<s; while(cin>>s){ cout<<" "<<s; } return 0; }

    • 0
      @ 2025-7-15 16:22:23

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

      int main() { cin >> s; cout << s; while (cin >> s) { cout << " " << s; }

      return 0;
      

      }

      • 1

      Information

      ID
      446
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      7
      Tags
      # Submissions
      13
      Accepted
      12
      Uploaded By