比赛 | 20121009 | 评测结果 | AWAAAAWWWAWWAAAAWWWW |
---|---|---|---|
题目名称 | 翻转游戏 | 最终得分 | 50 |
用户昵称 | 11111111 | 运行时间 | 0.007 s |
代码语言 | C++ | 内存使用 | 3.15 MiB |
提交时间 | 2012-10-09 21:19:17 | ||
- #include<iostream>
- #include<fstream>
- using namespace std;
- char a;
- int n=0,m=0;
- int main()
- {
- ifstream fin("flip.in");
- ofstream fout("flip.out");
- for (int i=1;i<=4;i++)
- {
- for(int j=1;j<=4;j++)
- {
- fin>>a;
- if (a=='b') n++;
- else
- m++;
- }
- }
- if (n==16||m==16)
- fout<<"0";
- else
- fout<<"Impossible";
- fin.close();
- fout.close();
- return 0;
- }