hiho week 138 register

Ended

Participants:249

Verdict:Accepted
Score:100 / 100
Submitted:2017-02-25 10:14:25

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<bitset>
#include<iostream>
#include<fstream>
#include<algorithm>
#include<queue>
#include<cmath>
#include<limits>
#include<cstddef>
using namespace std;
constexpr size_t TCnt = 1100, NM_MAX = 4;
int A[NM_MAX][NM_MAX], B[TCnt], C[TCnt];
bool isB[NM_MAX];
bool isBigger(const int &a, const int &b) {
    return a > b;
}
int main() {
    //ifstream cin("./input");
    //ofstream cout("./output");
    int Q;
    while(cin >> Q) {
        while(Q--) {
            int N, //  
                M, // 
                T, //  
                S; //   
                cin >> N >> M >> T >> S;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX