Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0x41414141 CTF 2021 - optimizer #4

Open
aszx87410 opened this issue Jan 31, 2021 · 0 comments
Open

0x41414141 CTF 2021 - optimizer #4

aszx87410 opened this issue Jan 31, 2021 · 0 comments
Labels

Comments

@aszx87410
Copy link
Owner

這題就是給一個可以 nc 連進去的 ip + port,進去之後就會問你兩個問題

第一題是河內塔的移動次數,會給一個陣列,經過觀察之後只要求出2^陣列長度就好,我到現在還是不知道陣列內容是要幹嘛的

解完之後第二題是逆序數對數量,偷懶直接 O(n^2) 就行了

手動算會累死所以寫了一個腳本但我忘記放哪了...找到再補回來

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant