鱼很腾
鱼很腾
全部文章
分类
归档
标签
去牛客网
登录
/
注册
鱼很腾的博客
全部文章
(共43篇)
题解 | 牛牛与切割机
#include <stdio.h> long long f[5000000]={0}; long long sum(int a,int b) { return f[b]-f[a-1]; } int main() { int n; scanf("%...
2025-11-23
0
22
题解 | 舞萌时间到!
#include <string.h> #include <stdio.h> int main() { char a[1000000]={0}; int b[128]={0}; b['P']=3; b['p']=2; b['G']=1; scanf...
2025-11-23
0
23
题解 | 【模板】静态区间和(前缀和)
#include <stdio.h> int main() { int n,q; scanf("%d %d",&n,&q); long f[1000000]={0}; for(int i=1;i<=n;i++) ...
2025-11-22
0
29
题解 | 字符串哈希
#include <iostream> #include<unordered_map> using namespace std; int main() { int n=0; cin>>n; unordered_map<string,int&...
2025-11-22
0
23
题解 | 两数之和
#include<unordered_map> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vect...
2025-11-22
0
22
题解 | 【模板】序列操作
#include <stdio.h> #include<stdlib.h> int cmp1(const void* e1,const void* e2) { return *((int*)e1)-*(int*)e2; } int cmp2(const void*...
2025-11-20
0
38
题解 | 学生综合评估系统
#include<bits/stdc++.h> using namespace std; // 定义学生结构体 struct Student{ int id; int academic_score; int activity_score; }; // 评估函数...
2025-11-19
0
30
题解 | 两点间距离
/** * struct Point { * int x; * int y; * Point(int xx, int yy) : x(xx), y(yy) {} * }; */ #include<cmath> class Solution { public: /**...
2025-11-19
0
30
题解 | 最厉害的学生
#include <stdio.h> struct peo { char name[10]; int a; int b; int c; }; int main() { struct peo s[10000]; int max=0; ...
2025-11-19
0
21
题解 | 【模板】差分
#include <stdio.h> int main() { int n=0; int k=0; scanf("%d %d",&n,&k); long long f[100000000]; for(int i...
2025-11-18
0
27
首页
上一页
1
2
3
4
5
下一页
末页