[题解] 简单粗暴的模拟题. #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()…
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…