摘要: 题目传送门 //P1009.cpp #include <bits/stdc++.h> using namespace std; //本题有坑,使用长整也过不了洛谷的用例,因为它的用例是22,需要高精度,也就是乘法高精度+加法高精度 typedef long long LL; int n; LL re 阅读全文
posted @ 2021-11-21 11:15 糖豆爸爸 阅读(1354) 评论(0) 推荐(0)
摘要: 题目传送门 //P1303.cpp #include <bits/stdc++.h> using namespace std; /** * 功能:高精度乘低精度模板 * @param A * @param b * @return */ vector<int> mul(vector<int> &A, 阅读全文
posted @ 2021-11-21 11:12 糖豆爸爸 阅读(66) 评论(0) 推荐(0)
摘要: 题目传送门 //P1601.cpp #include <bits/stdc++.h> using namespace std; /** * 功能:高精度加法模板 * @param A * @param B * @return */ vector<int> add(vector<int> &A, ve 阅读全文
posted @ 2021-11-21 11:11 糖豆爸爸 阅读(99) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; int n, m; const int N = 1e5 + 10; struct Node { int dir; //方向,0:圈内,1:圈外 string name;//姓名 } c[N]; i 阅读全文
posted @ 2021-11-21 10:46 糖豆爸爸 阅读(36) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 110; char a[N][N]; int dx[] = {0, 0, -1, 1, -1, 1, -1, 1}; //上下左右,左上,右上,左下,右下 int dy 阅读全文
posted @ 2021-11-21 10:27 糖豆爸爸 阅读(100) 评论(0) 推荐(0)
Live2D