Skip to content

Commit

Permalink
feat: shanghai
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <[email protected]>
  • Loading branch information
Dup4 committed Nov 16, 2024
1 parent 3b71fcb commit df6af43
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/ccpc/10th/zhengzhou-warmup/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contest_name":"第 10 届 CCPC 中国大学生程序设计竞赛郑州站 - 热身赛","start_time":1731740400,"end_time":1731747600,"frozen_time":3600,"penalty":1200,"problem_quantity":0,"problem_id":[],"group":{"official":"正式队伍","unofficial":"打星队伍","girl":"女队"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{},"balloon_color":[],"logo":{"preset":"ccpc"},"options":{"calculation_of_penalty":"accumulate_in_seconds_and_finally_to_the_minute"}}
{"contest_name":"第 10 届 CCPC 中国大学生程序设计竞赛郑州站 - 热身赛","start_time":1731740400,"end_time":1731747600,"frozen_time":3600,"penalty":1200,"problem_quantity":4,"problem_id":["A","B","C","D"],"group":{"official":"正式队伍","unofficial":"打星队伍","girl":"女队"},"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)"}],"logo":{"preset":"ccpc"},"options":{"calculation_of_penalty":"accumulate_in_seconds_and_finally_to_the_minute"}}
2 changes: 1 addition & 1 deletion data/ccpc/10th/zhengzhou-warmup/run.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/ccpc/10th/zhengzhou/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"contest_name":"第 10 届 CCPC 中国大学生程序设计竞赛郑州站 - 正式赛","start_time":1731805200,"end_time":1731823200,"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/zhengzhou/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions data/ccpc/10th/zhengzhou/team.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion data/icpc/49th/shanghai-warmup/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contest_name":"第 49 届 ICPC 国际大学生程序设计竞赛区域赛上海站 - 热身赛","start_time":1731740400,"end_time":1731747600,"frozen_time":3600,"penalty":1200,"problem_quantity":4,"problem_id":["A","B","C","D"],"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)"}],"logo":{"preset":"ICPC"},"options":{}}
{"contest_name":"第 49 届 ICPC 国际大学生程序设计竞赛区域赛上海站 - 热身赛","start_time":1731740400,"end_time":1731747600,"frozen_time":1800,"penalty":1200,"problem_quantity":4,"problem_id":["A","B","C","D"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":34,"silver":68,"bronze":102}},"balloon_color":[{"color":"#000","background_color":"#8962d9"},{"color":"#000","background_color":"#ffb6c1"},{"color":"#000","background_color":"#173db4"},{"color":"#000","background_color":"#ffffe0"}],"logo":{"preset":"ICPC"},"options":{"submission_timestamp_unit":"millisecond"}}
2 changes: 1 addition & 1 deletion data/icpc/49th/shanghai-warmup/run.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/icpc/49th/shanghai-warmup/team.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions origin-data/ccpc/10th/zhengzhou/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/chongqing")
"DATA_DIR", "../../../../data/ccpc/10th/zhengzhou")


FETCH_URI = os.getenv(
"FETCH_URI", "https://cpc.csgrandeur.cn/rank/contests/40fb3fb6-402d-48fe-918d-64a0426d1dc9")
"FETCH_URI", "https://cpc.csgrandeur.cn/rank/contests/9de35784-ec9d-421e-8501-34353101a3ed")


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-11-10 09:20:00")
c.end_time = utils.get_timestamp_second("2024-11-10 14:20:00")
c.start_time = utils.get_timestamp_second("2024-11-17 09:00:00")
c.end_time = utils.get_timestamp_second("2024-11-17 14:00:00")
c.medal = "ccpc"

c.fill_problem_id().fill_balloon_color()
Expand Down

0 comments on commit df6af43

Please sign in to comment.