Maximum possible valid time(HH : MM) from the given digits
オープン
algorithms
C
CPP
good first issue
hacktoberfest
Hacktoberfest2020
- 主要言語
- C++
- スター
- 504
- フォーク
- 436
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Given four integers - a, b, c, d.
Determine the maximum possible time (HH : MM) in 24 hour format that can be formed using the given 4 integers.
Also, print -1 if no valid time is possible with the given set of integers.
```
Sample Input
a=2
b=6
c=3
d=2
Sample Output
23 : 26
```
```
Sample Input
a=3
b=4
c=5
d=6
Sample Output
-1
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。