📜 ⬆️ ⬇️

Singapore's prime minister has posted the source code of his program solving Sudoku



Among the national leaders of various countries there are not many who are well versed in modern technology. And even fewer those who can independently write any program. It seems that Singapore was very lucky with its Prime Minister - in addition to solving important government problems, Li Xianlong can write programs in C ++. The other day, Xianlong shared his reshalker Sudoku, plus the source code of the program.

About this program, the Prime Minister mentioned in his address to representatives of the IT industry on April 20. It is worth noting that he wrote the program itself several years ago; now the Prime Minister simply does not have time for this.

However, the children of Li Xianlong work in the IT field, both of them graduated from MIT. After the Prime Minister completed his speech, several people approached him at once with a request to show his program.
')
What was done. Here is the source code of the software, with an example of the work, as well as the finished program. It all works on the command line in the Windows environment. In order to get started, you need to enter data line by line, for example, 1-3-8 --- 6.

By the way, if someone evaluates the program - write in the comments if the code written by the Prime Minister is good.

Short reference from Wiki : Li Xianlun (Chinese trad. 李顯龍, Exercise 李显龙, Pinyin: Lǐ Xiǎn Lóng, Eng. Lee Hsien Loong, born February 10, 1952, Singapore) - Singapore’s Prime Minister since August 12, 2004, has changed Goh Chok Tonga; Minister of Finance from 2001 to December 1, 2007. Chairman of the ruling party PND. The eldest son of former premier Lee Kuan Y.
He graduated from Trinity College, University of Cambridge, a mathematician. He served in the army. He has held various ministerial posts.

Source: https://habr.com/ru/post/365479/


All Articles