-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3441.cpp
56 lines (48 loc) · 985 Bytes
/
3441.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
//+base
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cctype>
#include <string>
#include <utility>
#include <iostream>
#include <algorithm>
#include <limits>
#include <functional>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SIZE(x) ((int)(x).size())
typedef vector<int> VI;
typedef long long ll;
typedef pair<int,int> PII;
//+main
const int MOD = 1000000007;
int solve(){
int A, C;
cin >> A >> C;
// get common factors of A+1 A-1
map<int, int> fs1, fs2;
getfactor(A+1, fs1);
getfactor(A-1, fs2);
return 0;
}
int main(){
int T;
cin >> T;
rep(t, 0, T){
cout << "Case " << (t+1) << " " << solve() << endl;
}
return 0;
}