mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
build(deps): update latest
This commit is contained in:
@ -16,9 +16,7 @@ make?
|
||||
### Input
|
||||
|
||||
- **Line 1:** Single integer `N` for the number of ingredients.
|
||||
- **`N` next lines:** One for each ingredient. Each of these lines contains two positive integers:
|
||||
the first one is the required quantity of this ingredient per cake, the second one is the quantity of
|
||||
this ingredient you have in your kitchen.
|
||||
- **`N` next lines:** One for each ingredient. Each of these lines contains two positive integers: the first one is the required quantity of this ingredient per cake, the second one is the quantity of this ingredient you have in your kitchen.
|
||||
|
||||
### Output
|
||||
|
||||
@ -32,7 +30,7 @@ available ingredients.
|
||||
|
||||
## Source
|
||||
|
||||
[SWERC 2020–2021 - Problem E: Cake](https://swerc.eu/2020/problems/)
|
||||
[SWERC 2020-2021 - Problem E: Cake](https://swerc.eu/2020/problems/)
|
||||
|
||||
## Examples
|
||||
|
||||
|
@ -21,7 +21,8 @@ This data is comprised of lines, each of which represents a defibrillator. Each
|
||||
- Contact Phone number
|
||||
- Longitude (degrees)
|
||||
- Latitude (degrees)
|
||||
These fields are separated by a semicolon (`;`).
|
||||
|
||||
These fields are separated by a semicolon (`;`).
|
||||
|
||||
**Beware:** the decimal numbers use the comma (,) as decimal separator. Remember to turn the comma (,) into dot (.) if necessary in order to use the data in your program.
|
||||
|
||||
|
@ -14,37 +14,3 @@ Display a pyramid of stars (`*`) whose height is given and in the right order (`
|
||||
## Examples
|
||||
|
||||
See the `test` folder for examples of input/output.
|
||||
|
||||
### Example 1
|
||||
|
||||
#### Input
|
||||
|
||||
```txt
|
||||
normal
|
||||
3
|
||||
```
|
||||
|
||||
#### Output
|
||||
|
||||
```txt
|
||||
*
|
||||
***
|
||||
*****
|
||||
```
|
||||
|
||||
### Example 2
|
||||
|
||||
#### Input
|
||||
|
||||
```txt
|
||||
reverse
|
||||
3
|
||||
```
|
||||
|
||||
#### Output
|
||||
|
||||
```txt
|
||||
*****
|
||||
***
|
||||
*
|
||||
```
|
||||
|
@ -22,9 +22,9 @@ Here are the rules for building a Roman numeral:
|
||||
- Subtractions of values are limited to 2 letters only. For example we **cannot** write `8` while doing `IIX`. We must use the addition of letters like this `VIII`.
|
||||
- Therefore, the first ten numbers are written as `I`, `II`, `III`, `IV`, `V`, `VI`, `VII`, `VIII`, `IX`, `X` . Larger numbers follow the same pattern.
|
||||
- You can associate as many symbols as you want to write larger numbers, for example:
|
||||
- `36` is written as `XXXVI`
|
||||
- `42` is written as `XLII`
|
||||
- `2448` is written as `MMCDXLVIII`.
|
||||
- `36` is written as `XXXVI`
|
||||
- `42` is written as `XLII`
|
||||
- `2448` is written as `MMCDXLVIII`.
|
||||
|
||||
| Symbol | I | V | X | L | C | D | M |
|
||||
| ------ | --- | --- | --- | --- | --- | --- | ---- |
|
||||
|
Reference in New Issue
Block a user