Repository navigation
Detailed Cost and Resource Calculations
This page provides an in-depth explanation of Wall construction cost and ice usage calculations, featuring endpoint details, example scenarios, and workflows to illustrate key concepts..
-
API Endpoints are available to query ice amounts and construction costs for the wall build process.
-
The Total Wall Cost
/profiles/overview/endpoint provides the total construction cost of the wall in Gold Dragon coins. -
The Daily Wall Cost
/profiles/overview/<int:day>/endpoint provides the total construction cost on a specific day in Gold Dragon coins. -
The Daily Profile Cost
/profiles/<int:profile_id>/overview/<int:day>/endpoint provides the amount of ice used on a specific day for a given wall profile in Gold Dragon coins. -
The Daily Profile Ice Amount
/profiles/<int:profile_id>/days/<int:day>/endpoint provides the amount of ice used on a specific day for a given wall profile in cubic yards.
- Sample uploaded wall configuration file:
[
[27],
[27, 27],
[28, 29, 30]
]-
Scenario A:
num_crewsis not specified:-
5 crews are assigned to each unfinished section (Profile 3 - section 3 is finished).
-
-
Construction process:
- Profile
1total progress: 30 - 27 = 3 feet - Profile
2total progress: (30 - 27) + (30 - 27) = 6 feet - Profile
3total progress: (30 - 28) + (30 - 29) = 3 feet - Wall total progress = 3 + 6 + 3 = 12 feet constructed
-
Construction process:
-
-
profiles/overview/returns the total construction cost of the wall:
- Cost = 12(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 4,446,000 Gold Dragon coins
-
-
-
profiles/overview/3returns the total construction cost on day3:
- Sections raised by 1 foot on day
3:- Profile
1:- section
1: 29 feet -> 30 feet
- section
- Profile
2:- section
1: 29 feet -> 30 feet - section
2: 29 feet -> 30 feet
- section
- Profile
- Cost = 3(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 1,111,500 Gold Dragon coins
-
-
-
profiles/3/overview/1returns the total construction cost of profile3on day1:
- Sections raised by 1 foot on profile
3on day1:- section
1: 28 feet -> 29 feet - section
2: 29 feet -> 30 feet
- section
- Cost = 2(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 741,000 Gold Dragon coins
-
-
-
profiles/2/days/2returns the total amount of ice used for profile2on day2:
- Ice amount = 2(total feet raised) * 195(cubic yards of ice) = 390 cubic yards of ice
-
-
-
Scenario B:
num_crews=2:-
-
Construction process:
-
Crew
Iraises profile1- section1by 3 feet. -
Crew
IIraises profile2- section1by 3 feet. - At the end of the
3rdday:-
Crew
Iis assigned to work on profile2- section2.- Raises it by 3 feet.
-
Crew
IIis assigned to work on profile3- section1.- Raises it by 2 feet.
-
Crew
- At the end of the
5thday:-
Crew
IIis assigned to work on profile3- section2.- Raises it by 1 foot.
-
Crew
- At the end of the
6thday:-
Crew
Iis relieved. -
Crew
IIis relieved.
-
Crew
- Wall total progress = 3 + 3 + 3 + 2 + 1 = 12 feet constructed
-
Construction process:
-
-
profiles/overview/returns the total construction cost of the wall:
- Cost = 12(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 4,446,000 Gold Dragon coins
-
-
-
profiles/overview/3returns the total construction cost on day3:
- Sections raised by 1 foot on day
3:- Profile
1:- section
1: 29 feet -> 30 feet (CrewI)
- section
- Profile
2:- section
1: 29 feet -> 30 feet (CrewII)
- section
- Profile
- Cost = 2(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 741,000 Gold Dragon coins
-
-
-
profiles/3/overview/1returns the total construction cost of profile3on day1:
-
404: No crew has worked on profile
3on day1.
-
-
-
profiles/2/days/2returns the total amount of ice used for profile2on day2:
- 1(total feet raised) * 195(cubic yards of ice) = 195 cubic yards of ice
-
-
Next: Operational Limitations
Back to: Wall Construction Overview
Return to Top
DFS Index
Home Page
📌 Notable Technical Sections
👤 Author
LinkedIn: Aleksandar Dimitrov
Yahoo: sasho_1983@yahoo.com