rs)Total Submission(s): 541    Accepted Submission(s): 370Problem Description  In the an
题目链接:htt
原创 2022-11-23 10:02:15
35阅读
思路:只有30乘30的矩阵,暴力旋转就好了#includeusing namespace std;int a[
原创 2023-06-09 18:35:00
38阅读
Zhuge Liang's PasswordTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 59Accepted Submission(s): 47Problem Description In the ancient three kingdom period, Zhuge Liang was the most famous and smart military leader. His enemy was Sima Yi, the mil
转载 2013-11-09 22:26:00
83阅读
2评论
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4772 题面: Zhuge Liang's Password Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Jav
原创 2021-12-27 16:02:51
43阅读
题意:给定n*n的2个矩阵问 用第二个矩阵通过翻转变换 使得与第一个矩阵匹配数字最多 最多的匹配数是多少  #include#includeinline int Max(int a,int b){return a>b?a:b;}inline int Min(int a,int b){return a>b?a:b;}#define N 50int
原创 2021-08-13 13:42:15
130阅读
Zhuge Liang's Password Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1120 Accepted Submission(
转载 2016-04-19 17:23:00
5阅读
题意: 给你两个矩阵,问你两个矩阵的最大相同元素个数(位置也要求相同),矩阵可以90旋转多次。 思路: 水题,直接模拟就行了,方法很多,可以直接写坐标关系,或者一层一层处理,就是一层一层往里拿出来,比较就行了,两个都写了。 直接交...
转载 2014-07-29 15:46:00
22阅读
2评论
题意: 给你两个矩阵,问你两个矩阵的最大相同元素个数(位置也要求相同),矩阵可以90旋转多次。思路: 水题,直接模拟就行了,方法很多,可以直接写坐标关系,或者一层一层处理,就是一层一层往里拿出...
原创 2022-07-21 12:07:11
33阅读
题意: 给你两个矩阵,问你两个矩阵的最大相同元素个数(位置也要求相同),矩阵可以90旋转多次。思路: 水题,直接模拟就行了,方法很多,可以直接写坐标关系,或者一层一层处理,就是一层一层往里拿出...
原创 2022-07-21 12:07:22
8阅读
Problem Descripti
原创 2022-11-09 18:53:25
54阅读
题意:给n个点找正方形思路:直接DFS#include<bits/stdc++.h> using namespace std; const int maxn = 40; int n,ans; int vis[maxn]; struct point { int x,y; }points[maxn]; bool cmp(const point a,const point b) { if
原创 2023-06-09 18:24:13
14阅读
#include#includeusing namespace std;#define Max 40struct Node{ int x,y; bool flag;} p[Max];bool cmp(Node p1, Node p2){ if(p1.y#includeusing namespace std;#define Max 40struct Node{ int x,y; bool flag;}p[Max];/*bool cmp(Node p1,Node p2){ if(p1.xans) ans=num; for(i=0;i<n;i+...
转载 2013-09-18 19:10:00
56阅读
http://acm.hdu.edu.cn/showproblem.php?pid=4739题意:给定100*100的矩阵中n(n#include #include #include #include #include #include #include #include #include #include #include #include #include #define CL(arr, val) memset(arr, val, sizeof(arr))#define lc l,m,rt> 1#define Min(x, y) (x) pt[M][M];//记录每个位置点的个...
转载 2013-09-19 17:29:00
44阅读
2评论
# -*- coding: utf-8 -*-"""Created on Fri Dec 1 18:08:06 2017@author: Administrator"""def popo(dmi,columns): most_area=Counter(dmi[columns]).most_common(1) if most_area[0][1]>=2: dmi2=
原创 2023-01-13 00:25:05
139阅读
题目大意:给出n个点的坐标,每次只能选择其中的四个点,而且这四个点还要能构成正方形,求最多能选出多少个点解题思路:纪录每个正方形是由哪几个点组成,然后将其压缩,这题有个坑点,就是会重点#include<cstdio>#include<algorithm>#include<cstring>using namespace std;#define maxn 55#define maxm 1200
原创 2023-04-07 10:46:59
22阅读
链接预处理出只有四个1的情况存入数组中 然后状压下 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define N 1050000 8 int dp[2][N]; 9 int q[2][N];10 int pt[N];11 bool f[N];12 struct node13 {14 int x,y;15 }pp[25];16 bool cmp(node a,node b)17 {18 if(a.x==b.x)19 return a.y<b.y;20 ...
转载 2013-09-15 22:26:00
32阅读
2评论
Zhuge Liang's MinesTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4739DescriptionIn the ancient three kingdom per...
IT
原创 2021-07-16 14:32:02
59阅读
题意给定平面直角坐标系内的N(N .#include #include #include #include #include #include #include #include #include #define MID(x,y) ((x+y)/2)#define MEM(a,b) memset(a...
转载 2013-09-17 21:35:00
45阅读
2评论
原题链接:http://acm.hdu.edu。#define _CRT_SECURE_NO_DEPRECATE#include#inc
原创 2022-12-06 19:24:28
70阅读
  • 1
  • 2
  • 3
  • 4
  • 5