首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
课程
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
许汉宝
获赞
20
粉丝
4
关注
6
看过 TA
0
江苏省徐州高级中学
2025
C++
IP属地:江苏
666666
私信
关注
拉黑
举报
举报
确定要拉黑许汉宝吗?
发布(12)
刷题
许汉宝
2021-10-20 22:18
江苏省徐州高级中学 计算机类
题解 | #普及组第七场-答案与解析#
第一题:可将矩阵看成一维数组a[N*N],进行简单运算即可。(一维转二维公式) #include<bits/stdc++.h> using namespace std; int main() { int n,t; cin>>n>>t; t%=(n*n); int a=t/n+1,b=t%n+1; cout<<a<<' '<<b; return 0; } 第二题:运用结构体,w:所含灵石数量;h:传送所需灵石数量;ca:差。 对h从小到大进行排序,接着i从1到n循环,如果碰到...
0
点赞
评论
收藏
转发
许汉宝
2021-10-20 22:17
江苏省徐州高级中学 计算机类
题解 | #普及组第七场 答案及解析#
第一题:可将矩阵看成一维数组a[N*N],进行简单运算即可。(一维转二维公式) #include<bits/stdc++.h> using namespace std; int main() { int n,t; cin>>n>>t; t%=(n*n); int a=t/n+1,b=t%n+1; cout<<a<<' '<<b; return 0; } 第二题:运用结构体,w:所含灵石数量;h:传送所需灵石数量;ca:差。 对h从小到大进行排序,接着i从1到n循环,如果碰到...
0
点赞
评论
收藏
转发
许汉宝
2021-10-20 22:15
已编辑
江苏省徐州高级中学 计算机类
题解 | #智力测试题、采集灵石、跳跃的排列、防御法阵#
第一题:可将矩阵看成一维数组a[N*N],进行简单运算即可。(一维转二维公式) #include<bits/stdc++.h> using namespace std; int main() { int n,t; cin>>n>>t; t%=(n*n); int a=t/n+1,b=t%n+1; cout<<a<<' '<<b; return 0; } 第二题:运用结构体,w:所含灵石数量;h:传送所需灵石数量;ca:差。 对h从小到大进行排序,接着i从1到n循环,如果碰到...
0
点赞
评论
收藏
转发
许汉宝
2021-10-17 22:51
江苏省徐州高级中学 计算机类
题解 | #智力测试题、采集灵石、跳跃的排列、AC40%防御法阵#
第一题:可将矩阵看成一维数组a[N*N],进行简单运算即可。(一维转二维公式) #include<bits/stdc++.h> using namespace std; int main() { int n,t; cin>>n>>t; t%=(n*n); int a=t/n+1,b=t%n+1; cout<<a<<' '<<b; return 0; } 第二题:运用结构体,w:所含灵石数量;h:传送所需灵石数量;ca:差。 对h从小到大进行排序,接着i从1到n循环,如果碰到...
0
点赞
评论
收藏
转发
许汉宝
2021-10-16 22:24
已编辑
江苏省徐州高级中学 计算机类
题解 | #间隔#
(1)若有相同且不全部相同 输出-1 (2)若全部相同 输出0 (3)无相同,求出所有相邻两数的差的最大公因数k,再依次看区间a[i]~a[i+1]中有多少个数是a[i]-a[i-1]的倍数,再-1 60分就是没考虑整体的最大公因数(我就是受害者) 注明:__gcd(两个下划线)可以直接用 #include<bits/stdc++.h> using namespace std; const int N=1e6+7; int main() { int T,n; scanf("%d",&T); while(T--) { ...
0
点赞
评论
收藏
转发
许汉宝
2021-10-16 22:04
江苏省徐州高级中学 计算机类
题解 | #月相#
今夜月明人尽望,不知秋思落谁家。 注意特判:14、15:14; 1、0:1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 2...... #include<bits/stdc++.h> using namespace std; int main() { int a,b; scanf("%d%d",&a,&b); if(a<b) { if(b==15) puts("14"); else pr...
0
点赞
评论
收藏
转发
许汉宝
2021-10-13 22:20
江苏省徐州高级中学 计算机类
题解 | #牛牛的四则运算#
废话不说,先上代码。 #include<bits/stdc++.h> using namespace std; const int N=1e6+7; int a[N]; int main() { int n; scanf("%d",&n); string s; cin>>s; int p=0; for(int i=0;i<n;++i){ if(!(s[i]>='0'&&s[i]<='9'||s[i]=='+'||s[i]=='-')) a[i...
0
点赞
评论
收藏
转发
许汉宝
2021-10-12 22:18
江苏省徐州高级中学 计算机类
2021-10-12
在牛客打卡2天,今天也很努力鸭!
每日监督打卡
0
点赞
评论
收藏
转发
许汉宝
2021-10-13 22:24
已编辑
江苏省徐州高级中学 计算机类
出阅读题吧,随意发挥!
我朋友写的,666666666 What I Think of Football as A Sport (First draft) Football is a popular sport which many people seem to be attracted by. Newspapers, magazines and a large number of sport channels on TV frequently cover football matches. Professional football teams will earn a lot of money and famou...
0
点赞
评论
收藏
转发
许汉宝
2021-10-13 22:25
已编辑
江苏省徐州高级中学 计算机类
8皇后92组解c++
8皇后92组解 #include <iostream> using namespace std; const int N = 8; int arr[10], total_cnt; bool isPlaceOK(int *a, int n, int c) { for (int i = 1; i <= n - 1; ++i) { if (a[i] == c || a[i] - i == c - n || a[i] + i == c + n) return false; } return true; } void pr...
0
点赞
评论
收藏
转发
许汉宝
2021-10-11 22:30
已编辑
江苏省徐州高级中学 计算机类
题解 | #double u#
#2 double u 费了我一半时间,终于写出来了。(模拟) 思路&代码:先将所有w和m全部变成"uu""nn",存到ch字符数组中,再将只含u、n和除w、m以外的小写字母按顺序跑一遍,合并其中的uu、nn,知道ans==ch长度为止。 "uwu"->"u uu u"->"uu uu"->"ww" 这样避免重复讨论,从而简化代码量,降低本题复杂程度 #include<bits/stdc++.h> using namespace std;...
0
点赞
评论
收藏
转发
许汉宝
2021-10-09 21:57
江苏省徐州高级中学 计算机类
😃
2021-10-09
在牛客打卡1天,今天也很努力鸭!
每日监督打卡
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务