Please in order to save solutions and appear on the leaderboards.

Zodiac Signs Authors

Zodiac Signs

Details

Given a MM-DD HH:MM date and time, output the corresponding Zodiac sign symbol according to the first table below. If the ascending sign is different from the Zodiac sign (sun sign), output it as well. Approximate the ascending sign using the sun sign and time according to the second table below.

SignSymbolDate
AriesMarch 21 – April 19
TaurusApril 20 – May 20
GeminiMay 21 – June 21
CancerJune 22 – July 22
LeoJuly 23 – August 22
VirgoAugust 23 – September 22
LibraSeptember 23 – October 22
ScorpioOctober 23 – November 22
SagittariusNovember 23 – December 21
CapricornDecember 22 – January 19
AquariusJanuary 20 – February 18
PiscesFebruary 19 – March 20
Time/Sun Symbol
00:00 - 01:59
02:00 - 03:59
04:00 - 05:59
06:00 - 07:59
08:00 - 09:59
10:00 - 11:59
12:00 - 13:59
14:00 - 15:59
16:00 - 17:59
18:00 - 19:59
20:00 - 21:59
22:00 - 23:59
0 bytes, 0 chars
Restore solution
All
Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
ctrl + enter or

Delete Solution

Are you sure you want to delete your solution(s) for Zodiac Signs?

If you have seperate bytes and chars solutions then both will be deleted.

This is irreversible, please backup any code you care about.

Type I understand and press confirm to continue.