-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcinn.cpp
60 lines (57 loc) · 963 Bytes
/
cinn.cpp
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include<bits/stdc++.h>
using namespace std;
#include "cinexp.h"
//牛客华为5.13笔试第一题输入
//int main()
//{
// int n;
// while (cin >> n)
// {
// vector<int> fir(3);
// vector<int> sec(3);
// char temp;
// int wd;
// for (int i = 0; i<3; i++) {
// cin >> fir[i];
// }
// cin >> wd;
// cin >> temp;
// for (int i = 0; i<3; i++) {
// cin >> sec[i];
// }
// }
//
// return 0;
//}
void cinexp::cinstring()
{
string str;
while (cin >> str)
//jack bullshit jack
//cin会接受空格 C++11
{
string bullshit = "bullshit";
string bush = "bush";
size_t pos = str.find(bullshit, 0);
size_t length = 8;
if (pos != string::npos)
str.replace(pos, length, bush);
cout << str;
}
}
void cinexp::cinMutilineNum()
{
vector<vector<int>> data(2);
int tmp;
int m;
cin >> m;
for (size_t i = 0; i < m; i++)
{
while (cin >> tmp) {
data[i].push_back(tmp);
if (cin.get() == '\n')
break;
}
}
cout << data[1][0];
}