CooKing
CooKing
全部文章
分类
DataWhale(1)
Python初级算法(1)
思维地图(1)
归档
标签
去牛客网
登录
/
注册
Lil Cooker
Lets get lit!!!
全部文章
(共33篇)
题解 | 打印字母数小于8的单词
#!/bin/bash awk 'length($0)<8' RS=' ' nowcoder.txt 这里 RS=' ' 表示记录分隔符是 空格。Awk 就会把 每个单词当成一条记录。$0 就代表一个单词,而不是整行。所以 length($0)<8 才能逐个单词判断长度。
2025-08-28
0
9
题解 | #Digital Roots#
#include <iostream> #include <string> using namespace std; int main() { string a; while(cin>>a){ if(a=="0") break; ...
2023-03-16
0
336
题解 | #魔咒词典#
#include <iostream> #include <map> #include <string> #include <cstdio> using namespace std; map<string, string> dict; ...
2023-03-12
0
368
题解 | #查找学生信息#
#include <iostream> #include <string> #include <map> using namespace std; struct Stu{ char id[5]; char name[10]; char s...
2023-03-12
1
335
题解 | #哈夫曼树#
#include <iostream> #include <queue> using namespace std; int main() { priority_queue<int> myque; int n; scanf("%d",&n)...
2023-03-12
0
252
题解 | #复数集合#
#include <iostream> #include <cmath> #include <string> #include <queue> using namespace std; struct Complex{ int re; i...
2023-03-12
0
284
题解 | #二叉排序树#
#include <iostream> using namespace std; struct TreeNode{ int data; TreeNode * leftchild; TreeNode * rightchild; }; void insertBTS(T...
2023-03-11
0
325
题解 | #二叉树遍历#
#include <iostream> #include <string> using namespace std; struct TreeNode{ char data; TreeNode * left; TreeNode * right; }; ...
2023-03-11
0
335
题解 | #二叉树#
#include <iostream> using namespace std; int tree(int m, int n){ if (m > n) return 0; else{return 1 + tree(2*m,n) + tree(2*m+1,n);}...
2023-03-11
0
259
题解 | #Fibonacci#
#include <iostream> using namespace std; int fabi(int n){ if(n==0 || n==1) return n; return fabi(n-2)+fabi(n-1); } int main() { int ...
2023-03-11
0
282
首页
上一页
1
2
3
4
下一页
末页