摘要:
C++ 贪吃蛇(Snake),SDL,bug g++ .\Untitled-2.cpp -lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf SDL #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <iostr 阅读全文
摘要:
class Solution { public: int findTheWinner(int n, int k) { int ans = 0; for (int i = 2; i <= n; ++i) { ans = (ans + k) % i; } return ans + 1; } }; 每次报 阅读全文
摘要:
As the title suggests 阅读全文
摘要:
> https://leetcode.cn/problems/longest-common-prefix/description/ > What's the "sort"? > A kind of overresearched cheating methods > Loosely speaking, 阅读全文
摘要:
> 好长时间没更新博客了……最近确实发生了不少事情,导致更新不了 > It's been a long time to not update my blog……Recently actually many things happen, so that I couldn't have time to 阅读全文
摘要:
以前学过ruby,gml,lisp这些小众语言的我 又开始了golang, 但是golang这门语言,的确比较独特,也很有可能是最好的语言,因为它图灵完全 只是不够底层,但是和C++对比一下吧 C++ vs golang In brief, golang is a general-purpose l 阅读全文
摘要:
# From C++ to Python and a little Java 从C++到Python以及对Java的小观点 ## Output Python: print f'\n' C++: std::cout print format ## Syntax Python: indent and : 阅读全文
摘要:
dumpbin Visual Studio Powershell 的一个工具 dumpbin.exe /dependents .\monitor_mysql.exe 阅读全文
摘要:
Leetcode Algorithm IPO (502) Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would 阅读全文
摘要:
运行时间从来没下过100% 很快啊,很快 /* * @lc app=leetcode.cn id=7 lang=cpp * * [7] 整数反转 */ // @lc code=start class Solution { public: int reverse(int x) { if (x == 1 阅读全文