沧浪之歌
沧浪之歌
全部文章
分类
归档
标签
去牛客网
登录
/
注册
沧浪之歌的博客
全部文章
(共57篇)
题解 | 验证IP地址
按照题目中的规则将 ip 地址重新生成一遍: #include <string> #include <vector> #include <array> #include <cstdio> #include <algorithm> #incl...
2026-04-13
0
25
题解 | 设计LRU缓存结构
#include <unordered_map> #include <list> class Solution { public: Solution(int capacity) { // write code here m_cap...
2026-04-13
0
27
题解 | 操作符混合运用
SELECT `device_id`, `gender`, `age`, `university`, `gpa` FROM `user_profile` WHERE (`gpa` > 3.5 AND `university` = '山东大学') OR (`gpa` > 3.8 ...
2026-04-13
0
23
题解 | 数位之和
#include <stdio.h> int main() { int n, sum = 0; scanf("%d", &n); n = n < 0 ? -n : n; while (n) { sum +...
2026-04-09
0
22
题解 | 牛牛学数列5
#include <stdio.h> int main() { int n, fibs[46] = {1, 1}; scanf("%d", &n); for (int i=2; i<n; ++i) { fibs[...
2026-04-09
0
25
题解 | 牛牛学数列
#include <stdio.h> int main() { int n, s; scanf("%d", &n); if (n%2) { s = (1+n)/2; } else { s = -...
2026-04-08
0
20
题解 | 年轻人不讲5的
#include <stdio.h> int main() { char s[1024]; while (fgets(s, 1024, stdin) != NULL) { for (int i=0; i<1024; i++) { ...
2026-04-08
0
21
首页
上一页
1
2
3
4
5
6
下一页
末页