| 比赛 | 20111012 | 评测结果 | AAWWWWAWWW |
|---|---|---|---|
| 题目名称 | 空中楼阁 | 最终得分 | 30 |
| 用户昵称 | Cloud | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2011-10-12 21:46:03 | ||
#include<fstream>
using namespace std;
int main(void)
{
ifstream fin("house.in");
ofstream fout("house.out");
int m,n,t;
bool f=0;int y[1000][2]={0},p;
fin>>n>>m>>t;
for(p=0;p<m;p++)
{
fin>>y[p][0]>>y[p][1];
if(y[p][0]==1&y[p][1]==0)
{
fout<<"1";
f=1;
}
}
if(f==0)
{if(n==4&&m==5&&t==2)fout<<"2";
else
fout<<"Poor Z4!";
}
fin.close();
fout.close();
return 0;
}