空调不够冷HA
空调不够冷HA
全部文章
分类
归档
标签
去牛客网
登录
/
注册
空调不够冷HA的博客
全部文章
(共24篇)
题解 | 游游的最小公倍数
#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
6
题解 | 数组分组
#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
4
题解 | [P1080] 国王游戏(简化版)
#include <stdio.h> #include <stdlib.h> // 定义大臣结构体 typedef struct { int a; int b; long long prod; // 用于排序的乘积 a * b } Minister;...
2026-02-14
0
7
题解 | 取数游戏
#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
7
题解 | 模意义下最大子序列和(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
6
题解 | 数水坑
#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
8
题解 | 凯撒解密
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @param n int整型 每个字符加密过程中错位的次数 * @return string字符串 *...
2026-02-09
0
9
题解 | 平方根
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求非负整数 n 的平方根 * @param n int整型 你需要求 n 的平方根 * @return double浮点型 */ double findSqrt(int n ) { /...
2026-02-09
0
9
题解 | 牛牛的考试
#include <stdio.h> #include<string.h> int main() { int T; char a[601]; int b[4]; scanf("%d",&T); for(in...
2026-02-09
0
7
题解 | 简写单词
#include <stdio.h> #include<string.h> #include <ctype.h> int main() { char s[5101]; fgets(s,sizeof(s),stdin); char a[10...
2026-02-09
0
10
首页
上一页
1
2
3
下一页
末页