D. Theseus and labyrinth time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Theseus has just arrived to Crete to fight Minotaur. He found a labyrinth that has a form of a rectangular field of…
Description Flip game squares. One side of each piece is white and the other one is black and each piece is lying either it's black or white side up. Each round you flip 3 to 5 pieces, thus changing the color of their upper side from black to white a…
胜利大逃亡(续) Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3734 Accepted Submission(s): 1216 Problem Description Ignatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)…… 这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了…
Maze Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 100000/100000 K (Java/Others) Total Submission(s): 901 Accepted Submission(s): 314 Problem Description This story happened on the background of Star Trek. Spock, the deputy captain of St…
题目链接 #include<bits/stdc++.h> using namespace std; typedef long long LL; int n,m,p,s,k; ,,,-}; ,-,,}; ][][<<]; //vis[i][j][k]记录是否以k状态访问过(i,j)位置 ][][][]; //记录墙和门的情况 ][]; //记录迷宫中钥匙的存在状态 struct node { int x,y; //x,y记录坐标 int own; //own记录钥匙的拥有情况 int…