EECS 649 Introduction to Artificial IntelligenceExamElectronic Blackboard Submission Due: April 24, 2019 @ 9PMPaper Copy Due: April 25, 2019 @ 4PM200 PointsDirections: You must read and follow these directions carefully. This is a 3 hour open notes,o…
Assessment Cover SheetStudent ID CohortStudent NameProgrammeEnrolledDiploma in Information Technology Software Development (Level 6)Course Code / Title ICT638 Mobile and App DevelopmentAssessment Title Assessment 2 - Portfolio Assessment Type TheoryL…
枚举$T_1$的树根,然后DP,设$f[i][j]$表示$T_1$的子树$i$是否存在包括i的连通子树与$T_2$的子树$j$同构. 若$j$是叶子,那么显然可以. 若$deg_i<deg_j$,那么显然不可以. 否则将$i$与$j$所有互相同构的儿子之间连边,二分图匹配判断是否存在完美匹配即可. #include<cstdio> #include<algorithm> const int N=105; int T,C,n,m,o,i,j,k,x,y; int g[N],v[…
一开始以为死于精度……调了半天发现死于long long…… 一.二分法: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; bool cmp(const int &a,const int &b){return a>b;} int n,a[100001],b[100001]; long long ans; int main() { scanf(&q…