摘要: p1219 #include <stdio.h> #include <string.h> #include <stdlib.h> int n; int a[100]; int visited[3][100]; int count=0; void dfs(int step){ int i,j; if( 阅读全文
posted @ 2022-06-22 11:08 Oranges 阅读(26) 评论(0) 推荐(0) 编辑
摘要: P1101 #include<stdio.h> #include<string.h> char a[110][110]; int b[110][110]; char c[7]={'y','i','z','h','o','n','g'}; int n; int dx[]={0,0,1,-1,1,1,- 阅读全文
posted @ 2022-04-09 09:14 Oranges 阅读(48) 评论(0) 推荐(0) 编辑
摘要: P1331 #include<bits/stdc++.h> using namespace std; char ch[1001][1001]; int n,m,s; int dx[5]={0,1,-1,0,0}; int dy[5]={0,0,0,1,-1}; int maxx,minx,maxy, 阅读全文
posted @ 2022-03-26 10:52 Oranges 阅读(79) 评论(0) 推荐(0) 编辑
摘要: P1605 #include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <cstring> using namespace std; int barrier[10][10]; int wal 阅读全文
posted @ 2022-03-25 10:32 Oranges 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 关于 支配树 的学习 题目:http://acm.hdu.edu.cn/showproblem.php?pid=6604 大意是在一张DAG图里求所有入度为0的点的支配点数目 支配树 给定一个有向图,给定起点S,终点T,要求在所有从S到T的路径中,必须经过的点有哪些(即各条路径上点集的交集),称为支 阅读全文
posted @ 2022-02-23 10:35 Oranges 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 默认配置 module.exports = { //... optimization: { splitChunks: { chunks: 'async', minSize: 30000, minChunks: 1, maxAsyncRequests: 5, maxInitialRequests: 3 阅读全文
posted @ 2022-02-22 17:09 Oranges 阅读(173) 评论(0) 推荐(0) 编辑
摘要: P1914 #include<iostream> #include<string.h> using namespace std; int main() { char s[51]; int n; scanf("%d",&n); scanf("%s",s); for(int i=0;i<strlen(s 阅读全文
posted @ 2021-12-18 09:16 Oranges 阅读(121) 评论(0) 推荐(0) 编辑
摘要: P1605 #include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <cstring> using namespace std; int barrier[10][10]; int wal 阅读全文
posted @ 2021-12-11 09:11 Oranges 阅读(146) 评论(0) 推荐(1) 编辑
摘要: P1996 #include<stdio.h> #include<stdlib.h> struct people { int num; struct people *next; }; int main() { struct people *head,*t,*s,*p; head=(struct pe 阅读全文
posted @ 2021-12-04 10:55 Oranges 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; struct edge{ int v; edge *next; }; int main(){ //创建 edge *head = (edge*)malloc(sizeof(edge)); head->next 阅读全文
posted @ 2021-12-04 10:09 Oranges 阅读(93) 评论(0) 推荐(0) 编辑