import java.util.Scanner; public class Main{ private static int[] duel(int playerA, int playerB){ int[] result = new int[2]; if (playerA == 0){ if (playerB == 1) result[1] = 1; if (playerB == 2) result[0] = 1; if (playerB == 3) result[0] = 1; if (pla…
[题解] 简单粗暴的模拟题. #include<cstdio> #include<algorithm> #include<cstring> #define LL long long #define rg register #define N 200010 using namespace std; int n,ta,tb,a[N],b[N],ansa,ansb; inline int read(){ ,f=; char c=getchar(); ),c=getchar()…
#include<bits/stdc++.h> #define pa pair<int,int> #define CLR(a,x) memset(a,x,sizeof(a)) using namespace std; typedef long long ll; ; inline ll rd(){ ll x=;; ;c=getchar();} +c-',c=getchar(); return x*neg; } int N,A,B; int opa[maxn],opb[maxn]; ]…