<h2><center>Welcome to the Mathematics × Programming Competition #3 </center></h2> <center><h6>*For Chinese version please scroll to the bottom. 中文版請見文末。*</h6></center> ---- <center><h2>Question</h2></center> **Ghost Leg** (aka Amidakuji) is a tiny game which is used to create random pairings between two arrays. This is commonly used in lucky draws. A ghost leg consists of vertical lines and horizontal lines. If there are *N* elements in an array, there would be *N* vertical lines and any number of horizontal lines. Horizontal lines should be touching two adjacent vertical lines. The rule of matching is by picking a vertical line at the top, and go downwards until you hit a horizontal line. Whenever you hit a horizontal line, travel along that horizontal line. Then continue to go downwards and repeat this process until you reach the other end. <div class="pull-left">https://steemitimages.com/DQmZ66uFYP1nvMHkjX91YbmrPaHqchhcbupPFyo2qZ5N6Tr/Untitled.png</div> <br>Consider this example on the left. <br><br>Obviously when there are no horizontal lines at all, the matched pairs would be {A,1}, {B,2} and {C,3}. <br><br>With the horizontal lines added, the matched pairs become {A,3}, {B,2} and {C,1}.<br><br>Make sure you understand this example before proceeding to the main question :)<br><br> Here comes the question. Consider the case *N* = 10. Given that when there are no horizontal lines, the matching pairs are {A,1}, {B,2}, {C,3}, {D,4}, {E,5}, {F,6}, {G,7}, {H,8}, {I,9}, {J,10}. What is the minimum number of horizontal lines to be added such that the final outcome would be {A,7}, {B,4}, {C,3}, {D,9}, {E,2}, {F,8}, {G,1}, {H,6}, {I,10}, {J,5}? --- <h2><center>Answer submission</center></h2> Please submit your answer through this <a href="https://goo.gl/forms/OXj1Bafe4QOU2c3p2">link</a>. --- <h2><center>Rules</center></h2> - This competition will last for 24 hours. After that no more submission would be accepted. - Participants who submit the answer as a comment below this post will be **disqualified**. - Participants can submit for unlimited number of times, however only the latest answer will be considered. - You have to upvote this post AND <a href="https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3">the announcement post</a> in order to be eligible for the competition. --- <h2><center>Prizes</center></h2> - The final SBD payout of <a href="https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3">the announcement post</a> would be the prize pool. - The first and second participant who gave the correct numerical answer will get 30% and 20% of the prize pool respectively. 5 other participants who provided the correct answer will be randomly drawn regardless of their submission time and each of them will get 10% of the prize pool. - Those who resteemed this post or <a href="https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3">the announcement post</a> will have 400% higher chance to win in the lucky draw! - If not all prizes are given out, they will be accumulated for the next competition. - @kenchung reserve all the rights to disqualify any suspected cheating players and decide the distribution of prize among the winner(s). ---- ---- <h2><center>歡迎參加數學 × 程式編寫比賽 (第三回) </center></h2> --- <center><h2>問題</h2></center> **畫鬼腳** 是一個用以將兩個序列配對的小遊戲。畫鬼腳被經常應用在抽獎之中。 鬼腳圖由直線及橫線組成。若一序列有*N*個項目,該鬼腳圖則共有*N*條直線及任何數量的橫線,且橫線必須連著相鄰的直線。配對規則為選取其中一個頂點,然後向下移動,直至遇到橫線。遇到橫線的時候需要跟著橫線行走,然後繼續向下移動,並重覆以上步驟,直至到達另一端。 <div class="pull-left">https://steemitimages.com/DQmZ66uFYP1nvMHkjX91YbmrPaHqchhcbupPFyo2qZ5N6Tr/Untitled.png</div> <br><br><br>試參考左側例子。<br><br>當圖中完全沒有橫線,明顯地配對結果為 {A,1}、{B,2}及{C,3}。<br><br>加上橫線後,配對結果便變成 {A,3}、{B,2}及{C,1}。<br><br>繼續閱讀問題前請確保你已完全明白這個例子 :)<br><br><br> 現在終於來到問題部分了。考慮*N* = 10。已知當鬼腳圖中完全沒有橫線,配對結果為 {A,1}, {B,2}, {C,3}, {D,4}, {E,5}, {F,6}, {G,7}, {H,8}, {I,9}, {J,10}。求最少需要加上的橫線數目使得配對結果為 {A,7}, {B,4}, {C,3}, {D,9}, {E,2}, {F,8}, {G,1}, {H,6}, {I,10}, {J,5}。 --- <h2><center>答案提交</center></h2> 請經<a href="https://goo.gl/forms/OXj1Bafe4QOU2c3p2">此連結</a>提交答案。 --- <h2><center>規則</center></h2> - 此比賽將進行24小時,其後將不會再接受新答案。 - 嚴禁在回覆公開答案,否則將被取消資格。 - 參加者可以重覆提交答案,但比賽終結時只會考慮最後提交的答案。 - 你必須upvote此帖以及 <a href="https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3">預告帖</a>方能參加比賽。 --- <h2><center>獎品</center></h2> - <a href="https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3">預告帖</a>所獲的SBD獎勵將會用作是次比賽的獎池。 - 第一及第二名最快給出正確數字答案的參賽者將分別獲得獎池的30%及20%。其他提交了正確數字答案的參與者之中將隨機抽出5名,他們每人可獲10%的獎池。 - Resteem此帖文或 <a href="https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3">預告帖</a>者將有額外400%的得獎機會! - 若有獎金未被發放,將累積至下一次比賽的獎池。 本人保留一切最終權利,包括但不限於取消任何疑似作弊者的資格並決定獲獎者的獎勵分配。
author | kenchung |
---|---|
permlink | question-mathematics-programming-competition-3 |
category | contest |
json_metadata | {"tags":["contest","math","programming","cn","cn-contest"],"users":["kenchung"],"image":["https://steemitimages.com/DQmZ66uFYP1nvMHkjX91YbmrPaHqchhcbupPFyo2qZ5N6Tr/Untitled.png"],"links":["https://goo.gl/forms/OXj1Bafe4QOU2c3p2","https://steemit.com/contest/@kenchung/get-ready-mathematics-programming-competition-round-3"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-07-15 04:00:00 |
last_update | 2017-07-17 14:58:06 |
depth | 0 |
children | 9 |
last_payout | 2017-07-22 04:00:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 3.439 HBD |
curator_payout_value | 0.784 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 4,853 |
author_reputation | 41,181,348,504,685 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,529,327 |
net_rshares | 957,574,072,963 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pharesim | 0 | 103,707,695,374 | 0.02% | ||
proctologic | 0 | 943,729,241 | 1% | ||
justtryme90 | 0 | 463,706,333,824 | 25% | ||
reedracer | 0 | 4,494,027,416 | 100% | ||
fyrstikken | 0 | 36,218,823,113 | 0.06% | ||
elyaque | 0 | 7,406,878,992 | 0.1% | ||
cloh76 | 0 | 199,643,012 | 0.2% | ||
diana.catherine | 0 | 415,563,447 | 0.1% | ||
raymondspeaks | 0 | 806,186,528 | 1% | ||
rouketas | 0 | 543,991,232 | 0.1% | ||
ubg | 0 | 202,213,663 | 1% | ||
stephen.king989 | 0 | 1,078,405,921 | 0.2% | ||
lemouth | 0 | 54,738,260,298 | 40% | ||
tjtrusty | 0 | 121,545,115 | 1% | ||
heretickitten | 0 | 355,055,293 | 0.2% | ||
benjamin.still | 0 | 227,934,317 | 1% | ||
ebargains | 0 | 1,158,691,386 | 1% | ||
bitcoinparadise | 0 | 136,186,337 | 0.05% | ||
jhermanbeans | 0 | 399,565,470 | 0.1% | ||
worldtraveler | 0 | 137,702,394 | 0.2% | ||
starrkravenmaf | 0 | 226,597,536 | 0.3% | ||
decebal2dac | 0 | 679,267,524 | 1% | ||
gre3n | 0 | 67,775,233 | 0.1% | ||
steemprentice | 0 | 1,280,075,059 | 0.1% | ||
lastminuteman | 0 | 3,093,110,109 | 0.1% | ||
distantsignal | 0 | 339,902,693 | 0.2% | ||
ogochukwu | 0 | 828,219,334 | 0.3% | ||
pomperipossa | 0 | 312,994,405 | 0.1% | ||
sn0n | 0 | 58,735,733 | 1% | ||
xtrodinarypilot | 0 | 288,101,611 | 1% | ||
banjo | 0 | 262,454,218 | 6.51% | ||
maryfavour | 0 | 2,061,970,238 | 1% | ||
fronttowardenemy | 0 | 178,940,756 | 0.1% | ||
singa | 0 | 92,125,763 | 0.1% | ||
numpypython | 0 | 106,528,628 | 0.1% | ||
choogirl | 0 | 438,886,861 | 0.2% | ||
usammiismi | 0 | 55,560,786 | 1% | ||
outerground | 0 | 92,440,172 | 1% | ||
htliao | 0 | 11,319,839,375 | 61% | ||
jhagi.bhai | 0 | 62,980,921 | 0.2% | ||
wbulot | 0 | 52,045,758,766 | 100% | ||
yummymummy | 0 | 51,188,380 | 0.1% | ||
gindor | 0 | 270,745,081 | 0.2% | ||
abcdoctor | 0 | 76,949,439 | 1% | ||
whatamidoing | 0 | 112,436,893 | 0.1% | ||
shawnfishbit | 0 | 604,939,455 | 0.1% | ||
shellyduncan | 0 | 630,266,585 | 0.1% | ||
gohba.handcrafts | 0 | 91,607,325 | 1% | ||
qwasert | 0 | 105,224,007 | 0.2% | ||
guyverckw | 0 | 24,056,789,109 | 100% | ||
nanosesame | 0 | 7,035,012,337 | 100% | ||
taica | 0 | 137,211,606 | 0.1% | ||
kenchung | 0 | 20,115,205,076 | 100% | ||
pakyeechan | 0 | 12,042,973,618 | 100% | ||
jeffreytong | 0 | 3,756,036,908 | 100% | ||
helloworld123 | 0 | 2,957,773,968 | 100% | ||
kitcat | 0 | 8,124,255,558 | 20% | ||
happychau123 | 0 | 6,588,424,174 | 100% | ||
rycharde | 0 | 123,703,357 | 0.1% | ||
linuslee0216 | 0 | 15,110,568,038 | 100% | ||
chl | 0 | 3,413,447,267 | 100% | ||
cryptohustler | 0 | 177,855,940 | 1% | ||
adnanrahic | 0 | 8,832,581,681 | 100% | ||
binbin88 | 0 | 2,398,641,090 | 100% | ||
wilkinshui | 0 | 14,417,908,246 | 30% | ||
mrwanderlust | 0 | 234,544,080 | 0.1% | ||
thomaskikansha | 0 | 13,943,861,511 | 40% | ||
mrjt | 0 | 1,789,708,366 | 100% | ||
minnowsupport | 0 | 23,512,747,706 | 1% | ||
math-trail | 0 | 4,420,099,658 | 20% | ||
alphacore | 0 | 196,513,944 | 0.1% | ||
burnedpixel | 0 | 152,018,179 | 0.2% | ||
serggioc | 0 | 1,233,977,413 | 100% | ||
aaronli | 0 | 2,740,933,499 | 100% | ||
marylaw | 0 | 7,877,094,763 | 100% | ||
n1kofi | 0 | 123,231,693 | 1% | ||
rbennett | 0 | 98,081,272 | 1% | ||
tobykai | 0 | 5,864,645,643 | 100% | ||
myday | 0 | 110,362,600 | 0.1% | ||
tantra | 0 | 246,045,142 | 100% | ||
omar-hesham | 0 | 171,964,234 | 0.1% | ||
schneidor | 0 | 6,896,464,274 | 100% | ||
d-pend | 0 | 1,806,577,176 | 1% | ||
flaminghedge | 0 | 102,624,477 | 1% | ||
violetmed | 0 | 467,475,364 | 1% | ||
glex | 0 | 78,955,622 | 0.1% | ||
morodiene | 0 | 54,988,858 | 0.1% | ||
stenyin | 0 | 975,918,694 | 100% | ||
pizzachain | 0 | 1,160,684,872 | 100% | ||
dineroconopcion | 0 | 135,892,255 | 0.1% | ||
kawaiiiiiiii030 | 0 | 1,056,218,436 | 100% |
submit again
author | guyverckw |
---|---|
permlink | re-kenchung-question-mathematics-programming-competition-3-20170715t060125993z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-07-15 06:01:24 |
last_update | 2017-07-15 06:01:24 |
depth | 1 |
children | 0 |
last_payout | 2017-07-22 06:01:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 12 |
author_reputation | 121,609,723,418,181 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,536,991 |
net_rshares | 0 |
Very good. Have fun with this! !-=o0o=-! To follow curated math content follow @math-trail. If you wish @math-trail to follow *you* then [read this article](https://steemit.com/mathematics/@math-trail/call-to-content-creators-with-mathematical-topics-math-trail-wants-to-follow-you-v-2). Click here for [Mathematics forum on chainBB](https://beta.chainbb.com/forum/math)
author | math-trail |
---|---|
permlink | re-kenchung-question-mathematics-programming-competition-3-20170715t045309215z |
category | contest |
json_metadata | {"tags":["contest"],"users":["math-trail"],"links":["https://steemit.com/mathematics/@math-trail/call-to-content-creators-with-mathematical-topics-math-trail-wants-to-follow-you-v-2","https://beta.chainbb.com/forum/math"],"app":"steemit/0.1"} |
created | 2017-07-15 04:53:42 |
last_update | 2017-07-15 04:53:42 |
depth | 1 |
children | 0 |
last_payout | 2017-07-22 04:53:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 373 |
author_reputation | 6,215,667,826,830 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,532,514 |
net_rshares | 0 |
<p>Congratulations! This post has been upvoted from the communal account, @minnowsupport, by kenchung from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, and someguy123. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the <a href="https://discord.gg/HYj4yvw">Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you like what we're doing please upvote this comment so we can continue to build the community account that's supporting all members.</p>
author | minnowsupport |
---|---|
permlink | re-kenchung-question-mathematics-programming-competition-3-20170715t050421875z |
category | contest |
json_metadata | {"tags":["contest"],"app":"cosgrove/0.0.1rc3"} |
created | 2017-07-15 05:04:21 |
last_update | 2017-07-15 05:04:21 |
depth | 1 |
children | 0 |
last_payout | 2017-07-22 05:04:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 709 |
author_reputation | 148,902,805,319,183 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,533,173 |
net_rshares | 0 |
So the competition ended, but when will the results be published?
author | pizzachain |
---|---|
permlink | re-kenchung-question-mathematics-programming-competition-3-20170716t101025722z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-07-16 10:10:24 |
last_update | 2017-07-16 10:10:24 |
depth | 1 |
children | 5 |
last_payout | 2017-07-23 10:10:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 65 |
author_reputation | 6,751,100,842,809 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,655,189 |
net_rshares | 0 |
I will do the prize presentation and announce the solution in one single post coz I dun want to create too many posts haha So probably you have to wait for 7 days for the payout of my post, and then I will know how much is the prize pool for prize presentation
author | kenchung |
---|---|
permlink | re-pizzachain-re-kenchung-question-mathematics-programming-competition-3-20170716t104311573z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-07-16 10:43:12 |
last_update | 2017-07-16 10:43:12 |
depth | 2 |
children | 4 |
last_payout | 2017-07-23 10:43:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 260 |
author_reputation | 41,181,348,504,685 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,657,408 |
net_rshares | 0 |
7 days? :(
author | pizzachain |
---|---|
permlink | re-kenchung-re-pizzachain-re-kenchung-question-mathematics-programming-competition-3-20170716t110137966z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2017-07-16 11:01:36 |
last_update | 2017-07-16 11:01:36 |
depth | 3 |
children | 3 |
last_payout | 2017-07-23 11:01:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 6,751,100,842,809 |
root_title | "[Question] Mathematics × Programming Competition #3 [問題] 數學 × 程式編寫比賽 (第三回)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,658,522 |
net_rshares | 0 |