Skip to content

Commit

Permalink
feat: Hanoi foreign teams
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftpsh committed Dec 2, 2024
1 parent 8e69f74 commit 8fa5ddb
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 6 deletions.
142 changes: 142 additions & 0 deletions app/2025/data/hanoi/Hanoi2025Teams.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
[
{
"teamId": 999980,
"name": "MooDeng",
"status": null,
"country": "",
"institution": "Chiang Mai University"
},
{
"teamId": 1000165,
"name": "nosolution",
"status": null,
"country": "",
"institution": "Chiang Mai University"
},
{
"teamId": 1016753,
"name": "The Naroditsky",
"status": null,
"country": "",
"institution": "Parahyangan University"
},
{
"teamId": 1003682,
"name": "MooDang",
"status": null,
"country": "",
"institution": "Chiang Mai University"
},
{
"teamId": 1003768,
"name": "NCKU-DuckPancake",
"status": null,
"country": "",
"institution": "National Cheng Kung University"
},
{
"teamId": 1011415,
"name": "Jägermeister",
"status": null,
"country": "",
"institution": "National University of Singapore"
},
{
"teamId": 1011416,
"name": "Tê con",
"status": null,
"country": "",
"institution": "National University of Singapore"
},
{
"teamId": 1011417,
"name": "Hhc",
"status": null,
"country": "",
"institution": "National University of Singapore"
},
{
"teamId": 1011418,
"name": "Penguin Feeders",
"status": null,
"country": "",
"institution": "National University of Singapore"
},
{
"teamId": 1011419,
"name": "Spiral",
"status": null,
"country": "",
"institution": "National University of Singapore"
},
{
"teamId": 1000512,
"name": "Penalty Enjoyer",
"status": null,
"country": "",
"institution": "Chiang Mai University"
},
{
"teamId": 1008129,
"name": "fruit_advantages",
"status": null,
"country": "",
"institution": "National Taiwan University"
},
{
"teamId": 1018163,
"name": "BogoSort",
"status": null,
"country": "",
"institution": "Singapore Management University"
},
{
"teamId": 1018373,
"name": "7 is our favourite number",
"status": null,
"country": "",
"institution": "Nanyang Technological University"
},
{
"teamId": 1018378,
"name": "nameless",
"status": null,
"country": "",
"institution": "Nanyang Technological University"
},
{
"teamId": 1018379,
"name": "Link Cut Tree",
"status": null,
"country": "",
"institution": "Nanyang Technological University"
},
{
"teamId": 1018384,
"name": "acwyfiphite",
"status": null,
"country": "",
"institution": "Nanyang Technological University"
},
{
"teamId": 1035866,
"name": "ConForza",
"status": null,
"country": "",
"institution": "Pohang University of Science and Technology"
},
{
"teamId": 1039332,
"name": "PhoKing",
"status": null,
"country": "",
"institution": "Pohang University of Science and Technology"
},
{
"teamId": 1039327,
"name": "NMK",
"status": null,
"country": "",
"institution": "Hanyang University"
}
]
10 changes: 6 additions & 4 deletions app/2025/data/hanoi/region.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { Region, RegionStatus } from "../types";

import prelimsTeamsWithUnofficial from "./Vietnam2025NationalScoreboard.json";

import regionalTeams from "./Hanoi2025Teams.json";

const VIETNAM_PRELIM_TEAMS = prelimsTeamsWithUnofficial.filter((x) => {
if (x.institution.match(/^HS(GS)? /)) return false;
if (x.institution.match(/High School/i)) return false;
Expand All @@ -17,9 +19,9 @@ const VIETNAM_PRELIM_TEAMS = prelimsTeamsWithUnofficial.filter((x) => {
const VIETNAM_REGION_SCORE: RegionScoreArgs = {
// 11/28 16:30 (UTC+7):
// https://www.olp.vn/tin-t%E1%BB%A9c/olympic-icpc/th%C3%B4ng-b%C3%A1o
univs: 69,
teams: 136,
foreignTeams: 20,
univs: 61 + countUniversities(regionalTeams),
teams: 117 + countTeams(regionalTeams),
foreignTeams: countTeams(regionalTeams),
teamsPrelim: countTeams(VIETNAM_PRELIM_TEAMS),
univsPrelim: countUniversities(VIETNAM_PRELIM_TEAMS),
};
Expand All @@ -31,5 +33,5 @@ export const Hanoi: Region = {
status: RegionStatus.preliminariesFinished,
score: regionScore(VIETNAM_REGION_SCORE),
scoreDetails: VIETNAM_REGION_SCORE,
regionalTeams: [],
regionalTeams,
};
10 changes: 9 additions & 1 deletion app/2025/data/institutions.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,5 +413,13 @@
{ "institution": "Universitas Udayana", "region": "IDN" },
{ "institution": "Gunadarma University", "region": "IDN" },
{ "institution": "Calvin Institute of Technology", "region": "IDN" },
{ "institution": "Universitas Pendidikan Indonesia", "region": "IDN" }
{ "institution": "Universitas Pendidikan Indonesia", "region": "IDN" },
{
"institution": "Chiang Mai University",
"region": "THA"
},
{
"institution": "Singapore Management University",
"region": "SGP"
}
]
2 changes: 1 addition & 1 deletion app/2025/hanoi/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Page = () => {
<RegionHeader region={Hanoi} />
<Card>
<b>Hanoi:</b> 136 teams (116 Vietnamese teams + 20 foreign teams) from
69 universities are expected:
69 universities are expected, with domestic teams unknown:
https://www.olp.vn/tin-t%E1%BB%A9c/olympic-icpc/th%C3%B4ng-b%C3%A1o
</Card>
<RegionTeams region={Hanoi} />
Expand Down

0 comments on commit 8fa5ddb

Please sign in to comment.