While1729
While1729
全部文章
分类
归档
标签
去牛客网
登录
/
注册
consistant 665
believe
全部文章
(共42篇)
题解 | 好串
#include <stdio.h> #include<string.h> int main() { char s[100002]; char stack[100001]; int top=0; scanf("%s",s);...
2025-12-24
0
10
题解 | 【模板】栈的操作
#include <stdio.h> #include<stdlib.h> int main() { int *stack=(int *)malloc(40000000); int top=-1; int n; scanf("%d&...
2025-12-24
0
11
题解 | 两两交换链表中的结点
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 ...
2025-12-23
0
18
题解 | 【模板】序列操作
#include <stdio.h> #include<stdlib.h> #include<string.h> int f5(const void*a,const void*b) {return *(int*)a-*(int*)b;} int f6(const...
2025-12-11
0
21
题解 | 点到直线距离 叉乘,并避免除以0
import math class Point: def __init__(self, x, y): self.x = x self.y = y class Line: def __init__(self, point_a, point_b): ...
2025-12-11
0
21
题解 | 两点间距离 典型类
# class Point: # def __init__(self, a=0, b=0): # self.x = a # self.y = b # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算A点与B点之间的距离...
2025-12-11
0
25
题解 | 最厉害的学生
n=int(input()) students=[] for _ in range(n): parts=input().split() name=parts[0] scores=list(map(int,parts[1:4])) total=sum(scores) ...
2025-12-01
0
21
题解 | 扫雷
#include<stdio.h> #include<string.h> int main(){ int n,m; scanf("%d %d", &n, &m); getchar(); char a[1002][10...
2025-12-01
0
23
题解 | B=A×A
import sys import math def main(): input=sys.stdin.read().split() t=int(input[0]) for i in range(1,t+1): b=int(input[i]) s...
2025-12-01
0
26
题解 | 校门外的树 差分法
#include <stdio.h> #include<string.h> int main() { int l,m ; scanf("%d %d", &l, &m); // 注意 while 处理多个 case ...
2025-11-23
0
19
首页
上一页
1
2
3
4
5
下一页
末页