版本比较
USACO Non-Transitive Dice B [22JAN]
正文
增加 3 行删除 3 行
32 行未改动333435363737383940414 行未改动46474849505051525354555657585960606162636416 行未改动32 行未改动 return f * x;}
bool x_win_y(int x[4], int y[4]){ int x_cnt =0, y_cnt = 0; int x_cnt =0, y_cnt = 0; for(int i=0;i<4;i++){ for(int j=0;j<4;j++){ if(x[i]>y[j])x_cnt++; else if(x[i]<y[j])y_cnt++;4 行未改动
bool check(){ if(x_win_y(a,b) && x_win_y(b,c) && x_win_y(c,a))return true; if(x_win_y(b,a) && x_win_y(c,b) && x_win_y(a,c))return true; return false; return false;}
void solve(){
for(c[0]=1;c[0]<=10;c[0]++){ for(c[1]=c[0];c[1]<=10;c[1]++){ for(c[2]=c[1];c[2]<=10;c[2]++){ for(c[3]=c[2];c[3]<=10;c[3]++){ if(check()){ puts("yes"); puts("yes"); return; } } }16 行未改动