-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.3.cpp
More file actions
34 lines (30 loc) · 661 Bytes
/
2.3.cpp
File metadata and controls
34 lines (30 loc) · 661 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
#include<bits/stdc++.h>
using namespace std;
vector<string> ans;
void linenumber(vector<string> inp){
int start = 1;
for(auto s : inp){
string out = to_string(start);
out += ") ";
bool f = 0;
for(int i = 0; i < (int)s.size(); i++){
out += s[i];
}
ans.push_back(out);
start++;
}
}
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);
}
linenumber(inp);
for(auto i : ans){
cout << i << '\n';
}
}