扎男_
扎男_
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
扎男_的博客
无人问津的港口总会开满鲜花
全部文章
(共112篇)
题解 | 求最大连续bit数
活动地址: 牛客春招刷题训练营 - 编程打卡活动 #include<iostream> #include<algorithm> using namespace std; // 这题一眼 就是跟位运算有关 刚好 煮波最近位运算的题做的多 // 简单直接模拟 然后保存最大值...
2025-04-07
0
37
题解 | 表示数字
活动地址: 牛客春招刷题训练营 - 编程打卡活动 #include<iostream> #include<algorithm> using namespace std; void solve(){ string s; cin>>s; /...
2025-04-07
0
34
题解 | 记负均正
活动地址: 牛客春招刷题训练营 - 编程打卡活动#include<iostream>#include<iomanip> // 小数规范的头文件using namespace std;int a[2000];int main(){ int n; cin>>...
2025-04-07
0
32
题解 | 仰望水面的歪
活动地址: 牛客春招刷题训练营 - 编程打卡活动#include<stdio.h>long long gcdh(long long a, long long b) { // 辗转相除法球最大公约数 long long t = a % b; while (t) { ...
2025-04-05
0
39
题解 | 密码强度等级
活动地址: 牛客春招刷题训练营 - 编程打卡活动while 1: try:# 先判断密码长度 score = 0 s = input() if len(s) <= 4: score += 5 elif len(...
2025-04-05
0
34
题解 | 记票统计
活动地址: 牛客春招刷题训练营 - 编程打卡活动 #include<bits/stdc++.h> #include<iostream> #include<algorithm> #include <iterator> #include<map>...
2025-04-05
0
39
题解 | 字符统计
活动地址: 牛客春招刷题训练营 - 编程打卡活动#include<iostream>#include<algorithm>#include<map>using namespace std;#define int long long const int N =2e...
2025-04-05
0
49
题解 | 最小循环节
活动地址: 牛客春招刷题训练营 - 编程打卡活动#include <iostream>#include<set>using namespace std;int main() { string s; cin>>s; set<char>s...
2025-04-04
0
54
题解 | 挑7
活动地址: 牛客春招刷题训练营 - 编程打卡活动import sysn = eval(input()) # 输入na = 0 for i in range(1,n+1): #从头开始遍历 if i %7 ==0 or str(i).count('7'): #判断是否是7的倍数 or 包含7...
2025-04-04
0
42
题解 | 完全数计算
活动地址: 牛客春招刷题训练营 - 编程打卡活动#include<iostream>#include<algorithm>using namespace std;#define int long long void solve(){ int n; cin>...
2025-04-04
0
41
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页