fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. string s;
  7. getline(cin,s);
  8. s[0]='1';
  9. int n=s.size();
  10. for(int i=0;i<n;i++){
  11. cout<<s[i]<<" ";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 5320KB
stdin
Hello world
stdout
1 e l l o   w o r l d