摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; double k; double x; int main() { cin >> k; for (int cnt = 1;; cnt++) { x += 2.0 * pow(0.98, cnt - 阅读全文
posted @ 2021-11-23 16:44
糖豆爸爸
阅读(58)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; const LL MOD = 1e9 + 7;//要模的质数 const int N = 1e5 + 10; int a[N]; //木棍长度数组,木棍 阅读全文
posted @ 2021-11-23 16:37
糖豆爸爸
阅读(96)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 10; //数字0-9需要的火柴个数,这个字典妙啊~,成为解决火柴棍难题的关键~ int a[N] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6}; 阅读全文
posted @ 2021-11-23 16:36
糖豆爸爸
阅读(105)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 110; char a[N][N]; //以i,j为坐标的点,向右找k个,看看是不是都是空地;向下找k个,看看是不是都是空地 int check(int i, int 阅读全文
posted @ 2021-11-23 16:34
糖豆爸爸
阅读(63)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 110; char a[N][N]; int MIN = 0x3f3f3f3f; int n, m; /** * 功能:计算在白x行,蓝y行,红z行的情况下,修改的数量 阅读全文
posted @ 2021-11-23 16:33
糖豆爸爸
阅读(81)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; int a[10]; int main() { int n; cin >> n; //放入数组 for (int i = 1; i <= n; i++) a[i] = i; do { //输出打印 阅读全文
posted @ 2021-11-23 16:28
糖豆爸爸
阅读(54)
评论(0)
推荐(0)
摘要:
题目传送门 一、暴力大模拟 #include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; bool found = false; for (int i1 = 1; i1 <= 9 阅读全文
posted @ 2021-11-23 16:07
糖豆爸爸
阅读(49)
评论(0)
推荐(0)
摘要:
题目传送门 一、无脑大循环 #include<bits/stdc++.h> using namespace std; vector<string> v1; int main() { int a, b, c, d, e, f, g, h, i, j, k, l = 0; cin >> k; for ( 阅读全文
posted @ 2021-11-23 15:58
糖豆爸爸
阅读(155)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 30; string a[N]; bool cmp(const string &a, const string &b) { //自定义排序函数,这一步非常巧妙,假设a= 阅读全文
posted @ 2021-11-23 14:54
糖豆爸爸
阅读(107)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 110; struct Student { string Name; int year, month, day, num; } a[N]; bool cmp(const 阅读全文
posted @ 2021-11-23 14:53
糖豆爸爸
阅读(57)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 50010; struct Point { int x, y, z; } a[N]; bool cmp(const Point &a, const Point &b) 阅读全文
posted @ 2021-11-23 14:52
糖豆爸爸
阅读(61)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 5010; struct Person { int k; int s; } a[N]; bool cmp(const Person &a, const Person & 阅读全文
posted @ 2021-11-23 14:51
糖豆爸爸
阅读(736)
评论(0)
推荐(0)
摘要:
题目传送门 一、原始方法 #include<bits/stdc++.h> using namespace std; const int N = 1010; int a[N], c[N]; int main() { int n; scanf("%d", &n); for (int i = 1; i < 阅读全文
posted @ 2021-11-23 14:50
糖豆爸爸
阅读(240)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 10010; int a[N]; int n, cnt; int main() { cin >> n; for (int i = 1; i <= n; i++) cin 阅读全文
posted @ 2021-11-23 14:48
糖豆爸爸
阅读(92)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 20010; int a[N]; int main() { int n, b; cin >> n >> b;//b是书架的高度 for (int i = 1; i <= 阅读全文
posted @ 2021-11-23 14:46
糖豆爸爸
阅读(72)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; int n; const int N = 30; struct Node { string x; int num; } a[N]; bool cmp(const Node &A, const No 阅读全文
posted @ 2021-11-23 14:36
糖豆爸爸
阅读(126)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 310; int n; struct Student { int id, chinese, total; } a[N]; bool cmp(const Student 阅读全文
posted @ 2021-11-23 14:32
糖豆爸爸
阅读(132)
评论(0)
推荐(0)
摘要:
题目传送门 #include<bits/stdc++.h> using namespace std; const int N = 110; int a[N]; int main() { int n; cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; 阅读全文
posted @ 2021-11-23 14:31
糖豆爸爸
阅读(60)
评论(0)
推荐(0)
摘要:
题目传送门 #include<bits/stdc++.h> using namespace std; const int N = 5000010; int a[N]; void quick_sort(int q[], int l, int r, int k) { if (l >= r)return; 阅读全文
posted @ 2021-11-23 13:51
糖豆爸爸
阅读(51)
评论(0)
推荐(0)
摘要:
题目传送门 #include<bits/stdc++.h> using namespace std; const int N = 100010; int a[N]; void quick_sort(int q[], int l, int r) { if (l >= r) return; int i 阅读全文
posted @ 2021-11-23 13:47
糖豆爸爸
阅读(49)
评论(0)
推荐(0)

浙公网安备 33010602011771号