-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.2.cpp
More file actions
36 lines (32 loc) · 703 Bytes
/
2.2.cpp
File metadata and controls
36 lines (32 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include<bits/stdc++.h>
using namespace std;
vector<string> ans;
void removewhitespace(vector<string> inp){
for(auto s : inp){
string out;
bool f = 0;
for(int i = 0; i < (int)s.size(); i++){
if(s[i] == ' '){
continue;
}
else {
out += s[i];
}
}
ans.push_back(out);
}
}
int main(){
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
string s;
bool single = 0, multi = 0;
vector<string> inp;
while(getline(cin,s)){
inp.push_back(s);
}
removewhitespace(inp);
for(auto i : ans){
cout << i << '\n';
}
}