摘要: #include<stdio.h> #include<string.h> int main() { int a[201]={0},b[201]={0}; char c[201]={'\0'},d[201]={'\0'}; //*字符数组用来储存输入的两个大整数 while(gets(c)) //*多 阅读全文
posted @ 2023-05-13 19:27 刘海烽 阅读(28) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; const int N=2500; int p[N]; const int MAXW = 30000; const int MaxVertexNum = 30; typedef char VertexType; int 阅读全文
posted @ 2023-04-25 11:39 刘海烽 阅读(26) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; const int maxn=1010; struct node//三元组结构 { int id;//工作编号 int ab;//在哪个机器 int times;//时间 bool 阅读全文
posted @ 2023-04-18 11:34 刘海烽 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; struct m{ int a; int b; }; struct m N[1001],N1[1001],N2[1001]; int n; bool cmp1(m x,m y){ 阅读全文
posted @ 2023-04-18 11:12 刘海烽 阅读(17) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> struct Str { int w; int num; }; int n; int a[1010], b[1010]; Str s[5000]; int u, v; int ans[1010]; bool cmp(Str x, Str y) { re 阅读全文
posted @ 2023-04-18 00:16 刘海烽 阅读(25) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> #define MAXN 10 int a[MAXN][MAXN]; int main() { int n,t=0; while(scanf("%d",&n)!=EOF) { memset(a,0,sizeof(a)); t= 阅读全文
posted @ 2023-04-14 21:13 刘海烽 阅读(32) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cstring> using namespace std; const int maxn = 100000; int prime[maxn] = { 0 }, visit[maxn] = { 0 }, cnt = 0, n; void li 阅读全文
posted @ 2023-04-14 20:06 刘海烽 阅读(62) 评论(0) 推荐(0)
摘要: #include<algorithm> #include<iostream> #include<cstdio> #define N 600 using namespace std; typedef struct{ int dl=-1,t=-1,fl=0,val=0; } Game; //t代表做的时 阅读全文
posted @ 2023-04-11 11:09 刘海烽 阅读(56) 评论(0) 推荐(0)
摘要: /* #include <iostream> #include <vector> using namespace std; #define max(N1,N2) N1>N2?N1:N2 int main() { /* 第一行输入背包容量V和物体的个数n 接下来有n行,每行包含两个数字,分别为该物体的 阅读全文
posted @ 2023-04-04 13:23 刘海烽 阅读(9) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cmath> using namespace std; #define SIZE 2001 #define base 3 #define multiple 2 char p[SIZE][SIZE]; void universe(int n, 阅读全文
posted @ 2023-04-01 17:56 刘海烽 阅读(77) 评论(0) 推荐(0)