Back
Close

Binary clock

Statement

 Goal

Binary clocks uses LEDs to express binary values. Convert example LED signals to decimal format.
Each column in the binary clock represents a digit on a regular clock: hours minutes seconds.
0 - LED is off
1 - LED is on
Input
00 00 00
00 01 10
00 11 00
10 11 01
Output
10:37:49
Constraints
4 lines each have an length of 8 (6 binary symbols and 2 spaces)
Example
Input
00 00 01
00 01 10
00 11 00
10 11 01
Output
10:37:49

Game modes
Fastest, Shortest, Reverse

Test cases
Test 1 Test
Input
00 00 01 00 01 10 00 11 00 10 11 01
Output
10:37:49

Validator 1 Validator
Input
00 00 01 00 01 10 00 11 00 10 11 00
Output
10:37:48

Test 2 Test
Input
00 01 01 00 10 10 11 00 00 01 11 11
Output
23:59:59

Validator 2 Validator
Input
00 01 01 00 10 10 11 00 00 01 01 11
Output
23:49:59

Test 3 Test
Input
00 00 00 00 00 00 00 00 00 00 00 00
Output
00:00:00

Validator 3 Validator
Input
00 00 00 00 00 00 00 01 00 00 01 00
Output
00:03:00

Test 4 Test
Input
00 00 00 00 01 11 01 10 01 10 10 10
Output
12:34:56

Validator 4 Validator
Input
00 00 00 00 11 00 11 00 00 01 01 01
Output
23:45:01

Solution language

Solution

Stub generator input