Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
55134 lgh 最小生成树 (mst) C++ Compile Error 0 0 MS 0 KB 499 2022-08-09 11:34:03

Tests(0/0):


#include <bits/stdc++.h> using namespace std; template<typename T> inline void red(T &x) { bool s=1;x=0;char c=getchar(); while(c<=32) c=getchar(); if(c=='-') s=-1,c=getchar(); for(; ('0'<=c && c<='9'); c=getchar()) x=(x<<3)+(x<<1)+(c^48); x=(s==1?x:-x); } int n,m,Map[55][55]; struct node { int l,r,u,d; }; int main() { red(n),red(m); for(int i=1; i<=n; i++) for(int j=1; j<=m; j++) Map[i][j]=(getchar()=='X'); dfs(1,1); return 0; }


Judgement Protocol: