____  ___    _  _     _   _ _____     _______
 / ___|/ _ \  | || |   | | | |_ _\ \   / / ____|
| |  _| | | | | || |_  | |_| || | \ \ / /|  _|
| |_| | |_| | |__   _| |  _  || |  \ V / | |___
 \____|\___/     |_|   |_| |_|___|  \_/  |_____|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

[Question] Mathematics × Programming Competition #5 [問題] 數學 × 程式編寫比賽 (第五回)

BY: @kenchung | CREATED: Aug. 26, 2017, 4:59 p.m. | VOTES: 150 | PAYOUT: $133.54 | [ VOTE ]

Mathematics × Programming Competition #5

https://steemitimages.com/0x0/https://steemitimages.com/DQmb33Qwu5vome8xQ2ZLcqFxZmFwV255hPGovzavXSUDtaX/math%26progLOGO-01-01.png

Designed by @nicolemoker

26/8/2017 UTC 17:00 - 2/9/2017 UTC 17:00

For Chinese version please scroll to the bottom. 中文版請見文末。

Question

https://steemitimages.com/DQmfC1RhQwarYu85vB1ovbMQFe9vWbcistb4z4qcewQ8MuK/image.png

Complete the 4 × 4 puzzle above using the numbers 1 to 16 without repetition, subject to the following constraints:

  1. A, B, J, K can only be filled with the numbers 2, 4, 6 or 8
  2. E + F = 26
  3. K + O = 9
  4. B + K = 14
  5. A + L = 9
  6. C + I = 25
  7. A + G = 13
  8. C + P = 24
  9. B + M = 9
  10. A + K = 12
  11. D + E = 25
  12. | E - N | = 4

Answer submission

Please submit your answer through this link. Type your answer as a list of numbers from A to P separated by commas, for example “1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16”.

Rules

Prizes

https://steemitimages.com/0x0/https://steemitimages.com/DQmY2jUCgfijKRkYnpsENa1jpv6VFwWe8Ts88cYKcQjiLcp/image.png

The steemSTEM project (@steemstem) is a community-supported project aiming to increase the quality and the visibility of STEM (STEM is the acronym for Science, Technology, Engineering and Mathematics) articles on Steemit. Please support steemSTEM by following @steemstem, joining the chat channel and following the curation trail on Streemian! In order to further promote the use of the chat channel, I will stop announcing the time of next competition via a post. Instead I will announce the time in advance in the chat channel!

---

數學 × 程式編寫比賽 (第五回)

https://steemitimages.com/0x0/https://steemitimages.com/DQmb33Qwu5vome8xQ2ZLcqFxZmFwV255hPGovzavXSUDtaX/math%26progLOGO-01-01.png

Designed by @nicolemoker

26/8/2017 UTC 17:00 - 2/9/2017 UTC 17:00

問題

https://steemitimages.com/DQmfC1RhQwarYu85vB1ovbMQFe9vWbcistb4z4qcewQ8MuK/image.png

以1至16完成以上之4 × 4 拼圖,數字不能重覆,並需符合以下限制:

  1. A, B, J, K 只可由 2, 4, 6, 8 四個數字填上
  2. E + F = 26
  3. K + O = 9
  4. B + K = 14
  5. A + L = 9
  6. C + I = 25
  7. A + G = 13
  8. C + P = 24
  9. B + M = 9
  10. A + K = 12
  11. D + E = 25
  12. | E - N | = 4

答案提交

請經此連結提交答案。請將你的答案由A至P順序列出並以逗號分隔,例如 “1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16”。

規則

獎品

https://steemitimages.com/0x0/https://steemitimages.com/DQmY2jUCgfijKRkYnpsENa1jpv6VFwWe8Ts88cYKcQjiLcp/image.png

steemSTEM(@steemstem)是一個由steemit社群支持的項目,旨在宣傳STEM(STEM是科學,技術,工程和數學的首字母縮略詞)。 請通過以下方式來支持steemSTEM:追蹤@steemSTEM,加入聊天頻道和加入Streemian!為了進一步推廣聊天頻道的使用,我將不再透過發文來宣布下一場比賽的時間,我會在聊天頻道中提前公佈比賽時間!

TAGS: [ #contest ] [ #cn-contest ] [ #cn ] [ #math ] [ #programming ]

Replies

@nomanijaz | Aug. 26, 2017, 6:15 p.m. | Votes: 0 | [ VOTE ]

Excellent post..

@jamhuery | Aug. 26, 2017, 6:19 p.m. | Votes: 0 | [ VOTE ]

Is it Valid Number ?

@ionlysaymeep | Aug. 26, 2017, 6:43 p.m. | Votes: 2 | [ VOTE ]

meep

@firstamendment | Aug. 26, 2017, 11:04 p.m. | Votes: 0 | [ VOTE ]

@ionlysaymeep you can only leave your answer through the link, do not post your answer here even if it is meep which isn't a valid number.

@ionlysaymeep | Aug. 26, 2017, 11:42 p.m. | Votes: 0 | [ VOTE ]

meep

@firstamendment | Aug. 26, 2017, 11:08 p.m. | Votes: 0 | [ VOTE ]

the answer is looking for a list of numbers separated by commas. So, yes, it is a [list of] valid number[s]. Not sure if you need quotes or not.

@firstamendment | Aug. 26, 2017, 6:44 p.m. | Votes: 1 | [ VOTE ]

Did it by hand (or at least I think I did), but I wonder if taking the time to write out code and executing it would have been quicker. naturally for loops tend to be wasteful, but there are ways to optimize it using the rules.

@tzs | Aug. 27, 2017, 1:30 a.m. | Votes: 2 | [ VOTE ]

Same. I solved it manually in a few minutes. This question is not challenging at all.

@kenchung | Aug. 28, 2017, 9:35 a.m. | Votes: 0 | [ VOTE ]

wow that's really quick!

@yenipaola | Aug. 26, 2017, 7:18 p.m. | Votes: 0 | [ VOTE ]

Excellent contest, and send my answer, @kenchung

@kenchung | Aug. 27, 2017, 9:05 a.m. | Votes: 0 | [ VOTE ]

great, thanks for joining!

@yenipaola | Aug. 27, 2017, 9:20 p.m. | Votes: 0 | [ VOTE ]

I hope to stay in the finalists, the numbers are my passion @kenchung

@whd | Aug. 26, 2017, 8:08 p.m. | Votes: 1 | [ VOTE ]

I will give you a little hint about tools you should use. Take a look on prolog programming language which is great for constraint logic programming :)

@tking77798 | Aug. 26, 2017, 9:06 p.m. | Votes: 0 | [ VOTE ]

Submitted. Hope I got it right this time!

@kenchung | Aug. 27, 2017, 9:07 a.m. | Votes: 0 | [ VOTE ]

Thanks for joining!

@ratticus | Aug. 27, 2017, 2:13 a.m. | Votes: 0 | [ VOTE ]

Nice and relatively simple logic puzzle. Entered and upvoted

@kenchung | Aug. 27, 2017, 9:06 a.m. | Votes: 0 | [ VOTE ]

great!

@ghyassine | Aug. 27, 2017, 2:26 a.m. | Votes: 0 | [ VOTE ]

Follow me and upvote my post , why ? because i'll do the same

https://steemit.com/life/@ghyassine/follow-me-and-upvote-my-post-why-because-i-ll-do-the-same
https://steemitimages.com/0x0/https://steemitimages.com/DQmZmM27B4MD4ykvqYLP9AxSzqQy2jGD47YEKdaQA6WDPFZ/stock-vector-helping-each-other-illustration-concept-550194874.jpg

@pizzachain | Aug. 27, 2017, 7:34 a.m. | Votes: 0 | [ VOTE ]

| E - N |

What does that mean??? Is it just normal E - N or what else could it mean???

@kenchung | Aug. 27, 2017, 9:05 a.m. | Votes: 0 | [ VOTE ]

that's the absolute sign, a mathematical symbol

@pizzachain | Aug. 27, 2017, 12:11 p.m. | Votes: 0 | [ VOTE ]

that is?

@kenchung | Aug. 27, 2017, 6:12 p.m. | Votes: 0 | [ VOTE ]

it turns negative values to positive. e.g. | -2 | = 2, | 3 | = 3
for more properties of this function you may try to google it

@pizzachain | Aug. 27, 2017, 6:20 p.m. | Votes: 0 | [ VOTE ]

Ahhhh Thanks!

@cauchycauchy | Aug. 27, 2017, 4:23 p.m. | Votes: 0 | [ VOTE ]

Thank you for the contest! Since I graduated a year ago I don't do many logical thinking problems anymore so this was super fun for me! 😊

@kenchung | Aug. 27, 2017, 6:08 p.m. | Votes: 0 | [ VOTE ]

glad that you enjoy it! :)

@justyy | Aug. 27, 2017, 10:20 p.m. | Votes: 1 | [ VOTE ]

voted, resteeeeemed and correct answer submitted... like last time :P

@kenchung | Aug. 28, 2017, 9:33 a.m. | Votes: 0 | [ VOTE ]

wish that you can win again! :P

@justyy | Sept. 2, 2017, 11:27 p.m. | Votes: 0 | [ VOTE ]

Solution: https://steemit.com/cn/@justyy/bruteforce-solution-to-mathematics-programming-competition-5

@kenchung | Sept. 3, 2017, 9:17 a.m. | Votes: 0 | [ VOTE ]

Great, I will include your answer in my next post! Thanks :)

@alanman | Aug. 28, 2017, 3:39 a.m. | Votes: 0 | [ VOTE ]

Someone got it done in minutes?? Not me. Took me about an hour or two.

Submitted answer, upvoted, and resteemed. :)

@kenchung | Aug. 28, 2017, 9:35 a.m. | Votes: 1 | [ VOTE ]

ye I dun think I can do this in minutes too! Never mind the good news is you still got the answer eventually :)

@armandocat | Aug. 29, 2017, 4:58 p.m. | Votes: 0 | [ VOTE ]

I solved the problem using prolog 😼
Happy to provide the code once the competition ends!
Submitted answer, upvoted, and resteemed.

🐾

@kenchung | Aug. 29, 2017, 6:50 p.m. | Votes: 0 | [ VOTE ]

great, please do provide your code after the competition ends! I have heard of prolog but forgot how to write already haha

@armandocat | Sept. 2, 2017, 8:46 p.m. | Votes: 0 | [ VOTE ]

Hi, I posted my prolog solution to the problem as promised 😼
https://steemit.com/contest/@armandocat/mathematics-programming-competition-5-prolog-solution

Hope you like it! If you can, please help spread my post to others. I'd like to do this even for future contents if you think this could be a good idea for the people that read and try out these problems.

Thanks
Armando
🐾

@kenchung | Sept. 3, 2017, 9:17 a.m. | Votes: 0 | [ VOTE ]

Great thanks! I will include your solution in my next post. A very well-written post!

@misalen | Aug. 30, 2017, 1:35 p.m. | Votes: 0 | [ VOTE ]

Love mathematics and problems. Glad that I come across that post. Excellent idea. After like a 15 minutes I participated. :D

Greetings from Turkey!!

@kenchung | Aug. 30, 2017, 2:48 p.m. | Votes: 0 | [ VOTE ]

Hi there! :) So glad to see this competition has reached the other side of the world haha
Best of luck, wish you can win!

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>