摘要:
Problem: 2528User: qq1203456195Memory: 1120KTime: 94MSLanguage: C++Result: Accepted#include <cstdio>#include <cstring>#include <algorithm>using namespace std;#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define maxn 11111int hash[maxn];int li[maxn],ri[maxn];int X[max 阅读全文
摘要:
矩阵最大只有10*10,规模较小,用递归可以解决。最初第15行代码除了问题:(1)直接使用了题目中的输出3 step(s) before a loop of 8 step(s),忘了把3和8改成%d(2)两个参数maze[x][y]-1000,idx-maze[x][y]+1,分别犯了①把1000写成999②没有+1,两个错误。Problem : 1035 ( Robot Motion ) Judge Status : AcceptedRunId : 5927418Language : CAuthor : qq1203456195Code Render Status : Rendered By 阅读全文