[Offer收割]编程练习赛39 register

Ended

Participants:163

Verdict:Accepted
Score:100 / 100
Submitted:2017-12-10 13:42:26

Lang:G++

Edit
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 <cmath>
#include <vector>
#include <string>
#include <cstring>
#include <map>
#include <set>
#include <algorithm>
#include <utility>
#include <iomanip>
#include <queue>
 
using namespace std;
 
typedef long long ll;
typedef unsigned long long ul;
typedef pair<string,string> P;
#define X first
#define Y second
const int mod = 998244353;
ll gcd(ll a,ll b) {
    if(b==0) return a;
    return gcd(b,a%b);
}
ll calc(ll z,ll m,vector<ll> &r) {
    ll ck = 0;
    for(int i = 1; i < (1<<m); i++) {
        ll base = 1;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX