Cody

# Problem 2431. Power Times (of the day)

Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. For example, 8:23 can be written as 8=2^3. Write a function that determines if the given time (restricted to three digits in 12-hour time, 1:00 to 9:59) is a power time. There are four types that are categorized here, and a given time can fit more than one category:

` - equation written forward, "=" doesn't coincide with ":" --> add 1 to output (e.g., 2:38)`
` - equation written forward, "=" does coincide with ":" -- > add 100 to output (e.g., 8:23)`
` - equation written backward, "=" doesn't coincide with ":" --> add 10 to output (e.g., 3:28)`
` - equation written backward, "=" does coincide with ":" --> add 1000 to output (e.g., 9:23)`

Examples of combination times include 4:22 (1100 since 4=2^2 and 2^2=4) and 1:31 (1001 since 1^3=1 and 1^3=1).

This problem is related to Problem 2432 and Problem 2433.

### Solution Stats

62.07% Correct | 37.93% Incorrect
Last Solution submitted on Nov 12, 2019
{"ft_lang_label":"__label__en","ft_lang_prob":0.9072494,"math_prob":0.9918187,"size":1107,"snap":"2019-51-2020-05","text_gpt3_token_len":315,"char_repetition_ratio":0.12058023,"word_repetition_ratio":0.069148935,"special_character_ratio":0.34869015,"punctuation_ratio":0.16736402,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99981326,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-12T03:27:49Z\",\"WARC-Record-ID\":\"<urn:uuid:8d00edd0-eacb-490e-bc15-cd2e8556d78c>\",\"Content-Length\":\"83641\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:026efe61-2c52-4683-aaba-949cdc3f37ba>\",\"WARC-Concurrent-To\":\"<urn:uuid:ec7f96c8-ba94-4384-b40a-096e19c90165>\",\"WARC-IP-Address\":\"23.5.129.95\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/2431-power-times-of-the-day\",\"WARC-Payload-Digest\":\"sha1:DJNPSKD5KVWFGUOHXRFXAVX2FVCTMYBT\",\"WARC-Block-Digest\":\"sha1:FCPRDMHVATZEN2DKN4DXK7QMORAAN4US\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540536855.78_warc_CC-MAIN-20191212023648-20191212051648-00224.warc.gz\"}"}