-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathisolate.cc
More file actions
34 lines (31 loc) · 707 Bytes
/
isolate.cc
File metadata and controls
34 lines (31 loc) · 707 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
#include <cstdio>
#include <cstring>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <iomanip>
#include <algorithm>
#include <assert.h>
#include <sys/resource.h>
#include "lieonn.hh"
typedef myfloat num_t;
int main(int argc, const char* argv[]) {
std::string s;
assert(1 < argc);
vector<SimpleMatrix<num_t> > A;
A.resize(argc - 1);
for(int k = 1; k < argc; k ++) {
ifstream input;
input.open(argv[k]);
if(input.is_open())
input >> A[k];
else assert(0 && "Could not open argv[k]");
input.close();
}
SimpleMatrix<num_t> m;
std::cin >> m;
std::cout << balanceIntInvariant<num_t>(m, A) << std::endl;
return 0;
}