Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 485 Bytes
class Main
{
List<TeamResult> Teams;
void Order()
{
Teams = Teams.OrderBy(r => r, new リーグ順位Comparer()).ToList();
}
}
class リーグ順位Comparer : Comparer<TeamResult>
{
static int count1, count2, count3;
public override int Compare(TeamResult x, TeamResult y)
{
count1++;
int ret = 勝ち点得失点差で判定(x, y);
if (ret != 0)
return ret;
count2++;
ret = 当該チームの成績で判定(x, y);
if (ret != 0)
return ret;
count3++;
return 抽選(x, y);
}
}
You can’t perform that action at this time.