-
Notifications
You must be signed in to change notification settings - Fork 0
/
outlier.cpp
31 lines (27 loc) · 830 Bytes
/
outlier.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
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string line; bool between = false;
vector<string> buf;
while (getline(cin, line)) {
if (line.find("*CASH*") != -1 &&
line.substr(line.find("*CASH*")+6).find("*CASH*") == -1 &&
line.find("0.9999") == -1)
{
buf.push_back(line);
}
else if (line.find("VWOX") == -1)
{
if (!between) cout << line << endl;
if (line == "- - 0") between = true;
else {
if (line.find("XBT") != -1 || line.find("XRP") != -1 ||
line.find("LTC") != -1 || line.find("ETH") != -1)
cout << line << endl;
}
}
}
for (string line2 : buf) cout << line2 << endl;
}