摘要:
#include<iostream> #include<cstring> #include<cmath> using namespace std; int n,length=0,vis[1000]={0};string str[1000]; inline int check(string a,str 阅读全文
posted @ 2023-05-25 12:32
刘海烽
阅读(240)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int n,w[11000],m,ans,maxx; int main(){ scanf("%d %d",&n,&m); for(int i=1;i<=n;i++) scanf("%d",&w[i]); int 阅读全文
posted @ 2023-05-25 12:29
刘海烽
阅读(96)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int main() { int m, s, t, a = 0, b = 0; cin >> m >> s >> t; for (int i = 1; i <= t; i++) { a += 17; if (m >= 1 阅读全文
posted @ 2023-05-25 12:27
刘海烽
阅读(80)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <vector> #include <algorithm> #include <numeric> using namespace std; const double EPS = 1e-8; int main() { int n, k; cin 阅读全文
posted @ 2023-05-25 12:25
刘海烽
阅读(172)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<algorithm>//lower_bound函数 using namespace std; typedef long long ll; const int N = 1e6+5; int n,z; ll num[N]; int main() { 阅读全文
posted @ 2023-05-25 12:25
刘海烽
阅读(195)
评论(0)
推荐(0)
摘要:
#include <bits/stdc++.h> using namespace std; int n, m, a[351], r[5], dp[41][41][41][41]; #define getchar() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 阅读全文
posted @ 2023-05-25 12:23
刘海烽
阅读(126)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <cstring> using namespace std; const int N = 110; int n; int s[N][N]; // 二维前缀和数组 int main() { cin >> n; for (int i = 1; i 阅读全文
posted @ 2023-05-25 12:21
刘海烽
阅读(151)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <algorithm> using namespace std; int main() { int n, k; cin >> n >> k; int a[n]; for (int i = 0; i < n; i++) { cin >> a[i 阅读全文
posted @ 2023-05-25 12:20
刘海烽
阅读(110)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int flag[10005]; //堆空间,默认初始化全是0,等价于 int flag[10005]={0}; //flag值为0表示没水塘,为1表示有水塘 int main(){ int n,m,k; //n,m,k 阅读全文
posted @ 2023-05-25 12:05
刘海烽
阅读(107)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int k, v, m; //v 顶点 k 边数 m 颜色种类 int ans; //记录最后答案 int col[1010]; //标记每个顶点所图颜色 int graph[1010][1010]; //二维数组存图 阅读全文
posted @ 2023-05-25 12:04
刘海烽
阅读(60)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<vector> #include<algorithm> using namespace std; vector<int>vd; vector<int>vn; int n; int minsize; int maxsize; int main() 阅读全文
posted @ 2023-05-25 12:00
刘海烽
阅读(126)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; char maze[8][8]; void dfs(int x, int y); void print() { for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; 阅读全文
posted @ 2023-05-25 11:55
刘海烽
阅读(44)
评论(0)
推荐(0)
摘要:
#include<cstdio> #include<iostream> #include<cstring> #include<algorithm> #include<vector> using namespace std; int par[105] = { 0 }; int rank0[105] = 阅读全文
posted @ 2023-05-25 11:43
刘海烽
阅读(69)
评论(0)
推荐(0)

浙公网安备 33010602011771号