Skip to content

Commit

Permalink
feat: icpc chengdu
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <[email protected]>
  • Loading branch information
Dup4 committed Oct 27, 2024
1 parent 59a788e commit 9f85eca
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions data/ccpc/10th/jinan/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"contest_name":"第 10 届 CCPC 中国大学生程序设计竞赛济南站 - 正式赛","start_time":1729990800,"end_time":1730008800,"frozen_time":3600,"penalty":1200,"problem_quantity":13,"problem_id":["A","B","C","D","E","F","G","H","I","J","K","L","M"],"group":{"official":"正式队伍","unofficial":"打星队伍","girl":"女队"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":"ccpc","balloon_color":[{"color":"#fff","background_color":"rgba(189, 14, 14, 0.7)"},{"color":"#fff","background_color":"rgba(149, 31, 217, 0.7)"},{"color":"#fff","background_color":"rgba(16, 32, 96, 0.7)"},{"color":"#000","background_color":"rgba(38, 185, 60, 0.7)"},{"color":"#000","background_color":"rgba(239, 217, 9, 0.7)"},{"color":"#fff","background_color":"rgba(243, 88, 20, 0.7)"},{"color":"#fff","background_color":"rgba(12, 76, 138, 0.7)"},{"color":"#000","background_color":"rgba(156, 155, 155, 0.7)"},{"color":"#000","background_color":"rgba(4, 154, 115, 0.7)"},{"color":"#fff","background_color":"rgba(159, 19, 236, 0.7)"},{"color":"#000","background_color":"rgba(42, 197, 202, 0.7)"},{"color":"#fff","background_color":"rgba(142, 56, 54, 0.7)"},{"color":"#000","background_color":"rgba(144, 238, 144, 0.7)"}],"logo":{"preset":"ccpc"},"options":{"calculation_of_penalty":"accumulate_in_seconds_and_finally_to_the_minute"}}
1 change: 1 addition & 0 deletions data/ccpc/10th/jinan/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions data/ccpc/10th/jinan/team.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions data/icpc/49th/chengdu/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"contest_name":"第 49 届 ICPC 国际大学生程序设计竞赛区域赛成都站 - 正式赛","start_time":1729990800,"end_time":1730008800,"frozen_time":3600,"penalty":1200,"problem_quantity":13,"problem_id":["A","B","C","D","E","F","G","H","I","J","K","L","M"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{},"balloon_color":[{"color":"#fff","background_color":"rgba(189, 14, 14, 0.7)"},{"color":"#fff","background_color":"rgba(149, 31, 217, 0.7)"},{"color":"#fff","background_color":"rgba(16, 32, 96, 0.7)"},{"color":"#000","background_color":"rgba(38, 185, 60, 0.7)"},{"color":"#000","background_color":"rgba(239, 217, 9, 0.7)"},{"color":"#fff","background_color":"rgba(243, 88, 20, 0.7)"},{"color":"#fff","background_color":"rgba(12, 76, 138, 0.7)"},{"color":"#000","background_color":"rgba(156, 155, 155, 0.7)"},{"color":"#000","background_color":"rgba(4, 154, 115, 0.7)"},{"color":"#fff","background_color":"rgba(159, 19, 236, 0.7)"},{"color":"#000","background_color":"rgba(42, 197, 202, 0.7)"},{"color":"#fff","background_color":"rgba(142, 56, 54, 0.7)"},{"color":"#000","background_color":"rgba(144, 238, 144, 0.7)"}],"logo":{"preset":"ICPC"},"options":{}}
1 change: 1 addition & 0 deletions data/icpc/49th/chengdu/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions data/icpc/49th/chengdu/team.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 5 additions & 5 deletions origin-data/ccpc/10th/jinan/formal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
import common

DATA_DIR = os.getenv(
"DATA_DIR", "../../../../data/ccpc/10th/harbin")
"DATA_DIR", "../../../../data/ccpc/10th/jinan")


FETCH_URI = os.getenv(
"FETCH_URI", "https://cpc.csgrandeur.cn/rank/contests/154c5f2e-e3c4-4090-80a3-29ff0b7c348b")
"FETCH_URI", "https://cpc.csgrandeur.cn/rank/contests/f0cfdcc1-0903-4481-b326-b1aca051204e")


def get_contest():
c = common.get_basic_contest()

c.contest_name = "第 10 届 CCPC 中国大学生程序设计竞赛哈尔滨站 - 正式赛"
c.contest_name = "第 10 届 CCPC 中国大学生程序设计竞赛济南站 - 正式赛"
c.problem_quantity = 13
c.start_time = utils.get_timestamp_second("2024-10-20 09:20:00")
c.end_time = utils.get_timestamp_second("2024-10-20 14:20:00")
c.start_time = utils.get_timestamp_second("2024-10-27 09:00:00")
c.end_time = utils.get_timestamp_second("2024-10-27 14:00:00")
c.medal = "ccpc"

c.fill_problem_id().fill_balloon_color()
Expand Down
9 changes: 4 additions & 5 deletions origin-data/icpc/49th/chengdu/formal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import common

DATA_DIR = os.getenv(
"DATA_DIR", "../../../../data/icpc/48th/ecfinal")
"DATA_DIR", "../../../../data/icpc/49th/chengdu")

FETCH_URI = os.getenv(
"FETCH_URI", "")
Expand All @@ -14,11 +14,10 @@
def get_contest():
c = common.get_basic_contest()

c.contest_name = "The 2023 ICPC Asia East Continent Final Contest"
c.contest_name = "第 49 届 ICPC 国际大学生程序设计竞赛区域赛成都站 - 正式赛"
c.problem_quantity = 13
c.start_time = utils.get_timestamp_second("2024-01-13 11:00:00")
c.end_time = utils.get_timestamp_second("2024-01-13 16:00:00")
c.banner_mode = "ONLY_BANNER"
c.start_time = utils.get_timestamp_second("2024-10-27 09:00:00")
c.end_time = utils.get_timestamp_second("2024-10-27 14:00:00")

c.fill_problem_id().fill_balloon_color()

Expand Down
2 changes: 0 additions & 2 deletions origin-data/icpc/49th/chengdu/warmup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ def get_contest():
c.problem_quantity = 4
c.start_time = utils.get_timestamp_second("2024-10-26 14:20:00")
c.end_time = utils.get_timestamp_second("2024-10-26 16:20:00")
c.frozen_time = 30 * 60
c.unfrozen_time = 60 * 60

c.fill_problem_id().fill_balloon_color()

Expand Down

0 comments on commit 9f85eca

Please sign in to comment.