lanqiao 3511 飞机降落
This commit is contained in:
@@ -5,7 +5,7 @@ const int N = 1e2 + 10;
|
||||
struct node{
|
||||
int t, d, l; // 分别代表可以降落的时刻,盘旋时间,降落花费时间
|
||||
}a[N];
|
||||
bool vis[N];
|
||||
bool vis[N] = {false};
|
||||
int t, n;
|
||||
bool flag = false;
|
||||
// lasttime: 之前完成降落的所有飞机中的最后一架飞机降落的时间
|
||||
@@ -31,7 +31,6 @@ int main(){
|
||||
cin >> a[i].t >> a[i].d >> a[i].l;
|
||||
}
|
||||
flag = false;
|
||||
memset(vis, 0, sizeof(vis));
|
||||
dfs(1, 0);
|
||||
if(flag) cout << "YES" << endl;
|
||||
else cout << "NO" << endl;
|
||||
|
||||
Reference in New Issue
Block a user