akshitagit / akshitagit/CPP

Maximum possible valid time(HH : MM) from the given digits

オープン
#156 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。