While1729
While1729
全部文章
分类
归档
标签
去牛客网
登录
/
注册
consistant 665
believe
全部文章
(共39篇)
题解 | 【模板】序列操作
#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
7
题解 | 点到直线距离 叉乘,并避免除以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
5
题解 | 两点间距离 典型类
# class Point: # def __init__(self, a=0, b=0): # self.x = a # self.y = b # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算A点与B点之间的距离...
2025-12-11
0
7
题解 | 最厉害的学生
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
12
题解 | 扫雷
#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
14
题解 | 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
13
题解 | 校门外的树 差分法
#include <stdio.h> #include<string.h> int main() { int l,m ; scanf("%d %d", &l, &m); // 注意 while 处理多个 case ...
2025-11-23
0
9
题解 | 约瑟夫环 链表
#include <stdio.h> #include<stdlib.h> typedef struct Node{ int n; struct Node*next;} Node; int main() { int a, b,c; wh...
2025-11-23
0
15
题解 | A-B≠C 题目最长六位,转换为长整型避免浮点误差
#include <stdio.h> int main() { double a, b,c; while (scanf("%lf %lf %lf", &a, &b,&c) != EOF) { // 注意 while 处理多个 ...
2025-11-22
0
8
题解 | 学生基本信息输入输出 极简
info=input().split(";") number,src=info[0],[round(float(i)+0.0001,2)for i in info[1].split(",")] print("The each subject sco...
2025-11-22
0
9
首页
上一页
1
2
3
4
下一页
末页