首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
freezerhan
暨南大学
2022届
C++工程师
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(33)
阶乘末尾非零数字
2
#include <bits/stdc++.h> using namespace std; int main() { int n, ret = 1; int foo = 0, bar = 0; cin >> n; if (n == 1000) { cout &...
发表于 2019-11-28 08:53:33
求x到y的最少计算次数
6
#include <bits/stdc++.h> using namespace std; map<int,int> dp; int Min(int x, int y, int z, int k) { return min(min(x, k), min(y, z));...
发表于 2019-11-27 20:01:46
种树
2
#include <stdio.h> int a[1003]; int ret[2003]; int n; int dfs(int step, int have) { if (have == 0) return 1; int i; for (i = 1; i <= ...
发表于 2019-11-23 20:21:58
选靓号
3
#include <bits/stdc++.h> using namespace std; char str[10010]; int a[10010]; struct node { int id; int num; int lf; int target; node(int...
发表于 2019-11-23 15:04:49
二叉搜索树判定
1
#include <stdio.h> #include <algorithm> using namespace std; int G[100003][2]; int val[100003]; bool ret; pair<int,int> dfs(int u...
发表于 2019-11-23 11:05:23
最小栈
2
#include <stdio.h> #include <iostream> using namespace std; struct Stack { int *a; int *Min; int index; int mindex; Stack(int n) { ...
发表于 2019-11-22 15:22:34
字符串分割
1
#include <bits/stdc++.h> using namespace std; int main() { string ss; cin >> ss; vector <int> end(26, -1); vector ...
发表于 2019-11-13 11:07:30
龟兔赛跑
0
#include <bits/stdc++.h> #define int long long using namespace std; const int MAXN = 10010; const int INF = 0x7fffffff; const double exps = 1e...
发表于 2019-11-09 19:41:08
爬楼梯2
2
矩阵快速幂 def matmul(A, B): C = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] for i in range(3): for j in range(3): for k in range(3): ...
发表于 2019-11-02 14:13:18
计算原子的个数
0
#include <bits/stdc++.h> using namespace std; struct node{ string s; int num; node (string s, int num){ this->s = s; ...
发表于 2019-11-01 08:56:01
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题