Repository navigation
Expand file tree
/
Copy pathtemplates.cpp
More file actions
executable file
·87 lines (71 loc) · 1.8 KB
/
Copy pathtemplates.cpp
File metadata and controls
executable file
·87 lines (71 loc) · 1.8 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
typedef vector<pii> vpii;
typedef vector<string> vs;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<vi> vvi;
typedef vector<vvi> vvvi;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<long> vl;
typedef long double ld;
const int oo = (int)1e9;
const double PI = 2 * acos(0);
const double eps = 1e-9;
const int mod = 1e9 + 7;
inline int comp(const double &a, const double &b) {
if (fabs(a - b) < eps)
return 0;
return a > b ? 1 : -1;
}
// Xi = (A × Xi-1 + B × Xi-1 + C) modulo D
void generateList(vl &X, long X0, long X1, int N, long A, long B, long C,
long D) {
X[0] = X0;
X[1] = X1;
for (int i = 2; i < N; ++i)
X[i] = (A * X[i - 1] + B * X[i - 2] + C) % D;
}
void coutVi(vi vec) {
for (auto ele : vec)
cout << ele;
}
void solution() {
cout << "";
return;
}
int main() {
int t, n, m;
cin >> t;
for (int z = 1; z <= t; ++z) {
cin >> n >> m;
cout << "Case #" << z << ": ";
solution();
cout << endl;
}
return 0;
}
/*
g++ a.cpp -std=c++14 -pthread -O3 -o a
./a < a-test.in > at.out
./a < A-small-attempt0.in > as.out
./a < A-small-practice.in > as.out
./a < A-large-practice.in > al.out
g++ b.cpp -std=c++14 -pthread -O3 -o b
./b < b-test.in > bt.out
./b < B-small-attempt0.in > bs.out
./b < B-small-practice.in > bs.out
./b < B-large-practice.in > bl.out
g++ c.cpp -std=c++14 -pthread -O3 -o c
./c < c-test.in > ct.out
./c < C-small-attempt0.in > cs.out
./c < C-small-practice.in > cs.out
./c < C-large-practice.in > cl.out
g++ d.cpp -std=c++14 -pthread -O3 -o d
./d < d-test.in > bt.out
./d < D-small-attempt0.in > ds.out
./d < D-small-practice.in > ds.out
./d < D-large-practice.in > dl.out
*/