上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 171 下一页
摘要: 题目传送门 //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)
摘要: 题目传送门 //P1042.cpp #include <bits/stdc++.h> using namespace std; //每行至多 25 个字母,最多有 2500 行。 const int N = 25 * 2500 + 10; int a[N];//小华的输赢状态表 int idx; i 阅读全文
posted @ 2021-11-19 17:27 糖豆爸爸 阅读(206) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 1e6; struct Student { string name; int age, score; } a[N]; int main() { int n; cin > 阅读全文
posted @ 2021-11-19 09:47 糖豆爸爸 阅读(162) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; int n; /** 思路分析: 1、比如第10天桃子数量为1,我们记为s10=1. 2、那么我们可以考虑s9是多少? 3、第9天时,吃掉了s9的一半, 阅读全文
posted @ 2021-11-19 09:45 糖豆爸爸 阅读(172) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 110; LL a[N]; int n; LL res; int main() { //录入进来,终止条件是CTRL+D wh 阅读全文
posted @ 2021-11-19 09:43 糖豆爸爸 阅读(86) 评论(0) 推荐(0)
摘要: 题目传送门 一、原始暴力法 #include<bits/stdc++.h> using namespace std; const int N = 100000010; //判断一个数是不是质数 bool isPrime(int n) { if (n < 2) return false; for (i 阅读全文
posted @ 2021-11-19 09:36 糖豆爸爸 阅读(144) 评论(0) 推荐(0)
摘要: 题目传送门 一、暴力解法 #include <bits/stdc++.h> using namespace std; bool isPrime(int n) { for (int i = 2; i <= n / i; i++) if (n % i == 0) return false; return 阅读全文
posted @ 2021-11-19 09:33 糖豆爸爸 阅读(127) 评论(0) 推荐(0)
摘要: 题目传送门 一、原始解法 #include <bits/stdc++.h> using namespace std; //判断一个数是不是质数 bool isPrime(int n) { if (n < 2) return false; for (int i = 2; i <= n / i; i++ 阅读全文
posted @ 2021-11-19 09:31 糖豆爸爸 阅读(275) 评论(0) 推荐(0)
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 171 下一页
Live2D