diff --git a/BestCoder/AStar-PRE/1003.cpp b/BestCoder/AStar-PRE/1003.cpp new file mode 100644 index 0000000..6285281 --- /dev/null +++ b/BestCoder/AStar-PRE/1003.cpp @@ -0,0 +1,61 @@ +#include +#include +#include +#include +using namespace std; + +/// std::cin and std::cout is so slow. +struct ippack +{ + int a,b,c,d; +}; + +int main() +{ + int t; + scanf("%d",&t); + for(int tt=1;tt<=t;tt++) + { + printf("Case #%d:\n",tt); + vector ip; + int n,m; + scanf("%d %d",&n,&m); + for(int i=0;i ans; + ippack s; + scanf("%d.%d.%d.%d",&s.a,&s.b,&s.c,&s.d); + for(int j=0;j