hiho week 137 register

Ended

Participants:293

Verdict:Accepted
Score:100 / 100
Submitted:2017-02-13 21:15:05

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 <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <cassert>
using namespace std;
#define print(x) cout << x << endl
#define input(x) cin >> x
const int SIZE = 12345;
const int INF = 0x3f3f3f3f;
class Solution {
public:
    Solution(int n_, int m_, int k_, int t_, vector<int>& A_, vector<int>& B_): 
        n(n_), m(m_), k(k_), t(t_), A(A_), B(B_) 
    {
        // pass
    }
    
    int solve() {
        int ans = 0;
        for (int i = 1; i <= n; i++) {
            int cur = solve(i);
            if (cur == INF) {
                return INF;
            }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX