空调不够冷HA
空调不够冷HA
全部文章
分类
归档
标签
去牛客网
登录
/
注册
空调不够冷HA的博客
全部文章
(共38篇)
题解 | qcjj寄快递
#include <stdio.h> #include<math.h> struct{ double x; double y; } a[100000]; int main() { long long int n; double sum=0.0...
2026-02-19
0
44
题解 | 小d和超级泡泡堂
#include <stdio.h> int n, m; int count=0; char s[1001][1001]; int visited[1001][1001]={0}; int direction[4][2]={{-1,0},{1,0},{0,-1},{0,1}}; void...
2026-02-18
1
38
题解 | 小红的数位删除
#include <stdio.h> #include <string.h> #include <stdlib.h> // 存储生成的子序列信息 typedef struct { long long val; int ops; } Node; N...
2026-02-17
0
52
题解 | 【模板】扩展巴什博弈
#include <stdio.h> int main() { int t; scanf("%d", &t); while (t--) { long long n, l, r; scanf(&...
2026-02-16
0
42
题解 | 游游的最小公倍数
#include <stdio.h> int main() { long long int n,a,t; scanf("%lld",&n); for(int i=0;i<n;i++) { scanf(&q...
2026-02-15
0
47
题解 | 数组分组
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> int n; int c[30]; bool found = false; // index: 当前处理的自由数字索引 // sum_a: a组...
2026-02-15
0
41
题解 | [P1080] 国王游戏(简化版)
#include <stdio.h> #include <stdlib.h> // 定义大臣结构体 typedef struct { int a; int b; long long prod; // 用于排序的乘积 a * b } Minister;...
2026-02-14
0
27
题解 | 取数游戏
#include <stdio.h> int n, m; int a[10][10]; int selected[10][10]; // 记录哪些格子被选中了 long long max_ans = 0; // 检查 (r, c) 的 8 个方向是否有已经选中的数字 int check(...
2026-02-14
0
34
题解 | 模意义下最大子序列和(Easy Version)
#include <stdio.h> int n; long long int m,max_mod=0; int a[15]; void dfs(int pos,long long int current_sum) { long long current_mod=current_...
2026-02-14
0
27
题解 | 数水坑
#include <stdio.h> int visited[101][101]; char s[101][101]; // 八连通方向:上、下、左、右、左上、右上、左下、右下 int direction[8][2] = {{-1,0}, {1,0}, {0,-1}, {0,1}, ...
2026-02-14
0
27
首页
上一页
1
2
3
4
下一页
末页