费姣人
费姣人
全部文章
分类
归档
标签
去牛客网
登录
/
注册
费姣人的博客
全部文章
(共25篇)
题解 | 被打乱的异或和
#include <iostream> using namespace std; void solve(){ int n,a[102]; cin >> n; for (int i= 1; i<= n; i++) cin >> a[i]; cout...
2026-04-08
0
35
题解 | 纸牌游戏
#include <iostream> using namespace std; int main() { //一一比较,记录赢的次数 int t; cin >> t; int a1, a2, b1, b2; while(t--){...
2026-04-08
0
38
题解 | 计算一年中的第几天
#include <bits/stdc++.h> using namespace std; //判断闰年平年, 每月天数,4 6 9 11,四个月为小月, 7个月为大月1 3 5 7 8 10 12, 一个特殊月,闰年29天,平年28天 int moth[13]={0,31, 28,31...
2026-04-08
0
34
题解 | 特殊的科学计数法
#include <bits/stdc++.h> using namespace std; int main() { //输入字符串, 前一位和第三位小数点四舍五入,乘以字符串长度-1 //输入 string s; cin >> s; ...
2026-04-08
0
30
题解 | 九倍平方数
#include <bits/stdc++.h> using namespace std; typedef long long ll; //判断字符串经过平方操作是否为好数,只能替换字符串中的2和3 //解题关键:各位上的数之和能被9整除则数yes bool solve(){ s...
2026-04-07
0
35
题解 | 元素方碑
#include <iostream> #include <vector> using namespace std; const int MAXZ = 2e5 + 5; //先进行求和判断是否能能量相等(是否能被整除),如果可以,则判断进行轰击能否使能量相等 // 判断元素在...
2026-02-22
1
62
题解 | 小红的字符串修改
#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; //将字符串S中的字母移动得到字符串t的子串(连续),求出...
2026-02-22
1
64
题解 | 玩家积分榜系统
#include <iostream> #include <unordered_map> #include <string> using namespace std; //利用哈希表键为玩家名,值为积分 unordered_map<string , int&...
2026-02-07
1
55
题解 | 字符串哈希
#include <iostream> #include <unordered_map> #include <unordered_set> #include <set> using namespace std; //利用哈希表法,将表中没有的字符串,放...
2026-02-05
1
71
题解 | 插队
#include <iostream> #include <unordered_map> using namespace std; //顾客人数n,每个人的名字,插队次数m,构建链表,有哨兵节点,进行链表间的插入,删除操作 struct ListNode { strin...
2026-02-03
1
68
首页
上一页
1
2
3
下一页
末页