首页 > TAG信息列表 > pilots

POJ 2965 The Pilots Brothers' refrigerator

题面 The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator. There are 16 handles on the refrigerator door. Every handle can be in one of two states: open or closed. The refrigerator is open onl

The Pilots Brothers' Refrigerator

题目链接 http://poj.org/problem?id=2965 分析 用二进制表示开关状态,暴力枚举每个位置是否操作即可 AC代码 #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; const int maxn = 5; int h[maxn], cnt; char s[maxn]; pair<int, int> ans

The Pilots Brothers' refrigerator

#include<iostream>#include<cstdio>#include<string>using namespace std;int mem[4][4];//用于储存翻转次数,如果是偶数,则相当于没有翻转int main(){ char ch; for (int x = 0; x<4; x++){//按sample的顺序,x代表纵行,y是横列 for (int y = 0; y <= 4; y++){

bzojP3512: [POI2010]PIL-Pilots

Pre 一道不太难的蓝题,有一点需要注意。 Solution 四次单调队列(少几次也可以,但是需要空间支持)。 Code #include<bits/stdc++.h> #define xx first #define yy second #define ll long long using namespace std; const int N = 3000000 + 5; ll info[N], n, q[N], tail, head; ll

L316 波音737Max 危机

Boeing Scrambles To Restore Faith In Its 737 MAX Airplane After Crashes In the wake of two deadly crashes of its 737 MAX jet in recent months that killed 346 people and grounded those planes worldwide, Boeing continues to produce more than 50 of the plane