예제 #1
0
        public ActionResult List()
        {
            ContestEntity contest = ViewData["Contest"] as ContestEntity;

            List <RankItem>             ranklist = ContestManager.GetContestRanklist(contest);
            List <ContestProblemEntity> problems = ContestProblemManager.GetContestProblemList(contest.ContestID);

            ViewBag.Problems = problems;

            return(View(ranklist));
        }
예제 #2
0
        public ActionResult Statistics()
        {
            ContestEntity contest = ViewData["Contest"] as ContestEntity;

            IDictionary <Int32, ContestProblemStatistic> statistics = SolutionManager.GetContestStatistic(contest.ContestID);
            List <ContestProblemEntity> problems = ContestProblemManager.GetContestProblemList(contest.ContestID);
            Dictionary <String, Byte>   langs    = LanguageManager.GetSupportLanguages(contest.SupportLanguage);

            ViewBag.Problems  = problems;
            ViewBag.Languages = langs;

            return(View(statistics));
        }