1 solutions
-
0
C++ :
#include <iostream> #include <string> using namespace std; int main() { string str1,str2,str3;int a=0; cin>>str1; getline(cin,str2); getline(cin,str2); cout<<str2<<str1<<endl; while(getline(cin,str3)) { cout<<str3[str3.size()-1]; a++; } cout<<endl<<a+2<<endl; // system("pause"); return 0; }
- 1
Information
- ID
- 18641
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By