hiho week 217 register

Ended

Participants:160

Verdict:Accepted
Score:100 / 100
Submitted:2018-08-28 17:02:55

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<bits/stdc++.h>
#define MAX 102
using namespace std;
int arr[MAX][2] = {0};
int nodes[MAX] = {0};
int v[MAX] = {0};
int f[MAX] = {0};
int logicAdd(int a,int b){
    int out = a+b;
    if(out==0) return 0;
    else return 1;
}
int logicMul(int a,int b){
    int out = a*b;
    if(out==0)return 0;
    else return 1;
}
int logicCompute(int a,int b,int c){
    if(c==2) return logicMul(a,b);
    else if(c==3) return logicAdd(a,b);
}
int getOther(int i){
    if(i==0) return 1;
    if(i==1) return 0;
    if(i==2) return 3;
    if(i==3) return 2;
} 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX