Shawn698
Shawn698
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Shawn698的博客
全部文章
(共11篇)
题解 | #Freckles 并查集#
#include "bits/stdc++.h" using namespace std; int father[5000]; int height[5000]; struct Edge{ int begin; int end; double cost; ...
2024-03-20
0
182
题解 | #畅通工程#
#include "bits/stdc++.h" using namespace std; int father[5000]; int height[5000]; struct Edge { int begin; int end; int cost; ...
2024-03-20
0
200
题解 | #继续畅通工程#
//还是畅通工程稍微修改即可 #include "bits/stdc++.h" using namespace std; int father[5000]; int height[5000]; struct Edge{ int begin; int end; ...
2024-03-20
0
169
题解 | #Skew数#
#include <cstdio> #include <string> #include <iostream> // 引入iostream以使用cin和cout #include "cmath" using namespace std; in...
2024-03-18
0
196
题解 | #Candy Sharing Game#
#include <iostream> using namespace std; bool is_equal(int* x, int n) { for (int i = 0; i < n - 1; ++i) { if (!(x[i] == x[i + 1])...
2024-03-18
0
199
题解 | #递推数列#
answer = []while(1): try: a0,a1,p,q,k = map(int, input().split()) answer.append(a0) answer.append(a1) for i in range(2,...
2024-03-17
0
171
题解 | #递推数列#
answer = [] while 1: try: a0, a1, p, q, k = map(int, input().split()) answer.append(a0) answer.append(a1) for i in...
2024-03-17
0
153
题解 | #大整数的因子#
from operator import le import sys answer = [] while(1): temp = [] try: a = int(input()) if a==-1: break f...
2024-03-17
0
185
题解 | #今年的第几天?#
#include <iostream> #include "vector" using namespace std; int main() { int day1[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30...
2024-03-16
0
179
题解 | #求最大最小数#
#include <iostream> #include "queue" using namespace std; struct answer{ int max; int min; }; int main() { queue<answer...
2024-03-16
0
169
首页
上一页
1
2
下一页
末页