摘要:
题目传送门 #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
糖豆爸爸
阅读(737)
评论(0)
推荐(0)

浙公网安备 33010602011771号