Cube painting UVA
来源:互联网 发布:啄木鸟图片下载器mac 编辑:程序博客网 时间:2024/05/24 07:23
问题类型:模拟,映射。
03pie’s solution for [UVA-253]:
#include <iostream> #include <string> using namespace std; int main() { string str,str11,str12,str13,str21,str22,str23; while(cin>>str){ str11=str[0]+str[5]; str12=str[1]+str[4]; str13=str[2]+str[3]; str21=str[6]+str[11]; str22=str[7]+str[10]; str23=str[8]+str[9]; if((str11==str21||str11==str22||str11==str23)&& (str12==str21||str12==str22||str12==str23)&& (str13==str21||str13==str22||str13==str23)) if((str21==str11||str21==str12||str21==str13)&& (str22==str11||str22==str12||str22==str13)&& (str23==str11||str23==str12||str23==str13)) //正反都来一次以确保有三个元素组成的可重复集合的单射映射 cout<<"TRUE"<<endl; else cout<<"FALSE"<<endl; else cout<<"FALSE"<<endl; } return 0; }
0 0
- UVa 253 - Cube painting
- Uva 253 - Cube painting
- Uva 253 Cube Painting
- uva 253 Cube painting
- uva 253 - Cube painting
- UVa 253 - Cube painting
- UVA 253 - Cube painting
- UVA 253 - Cube painting
- UVA 253 Cube painting
- UVa 253: Cube painting
- uva 253 - Cube painting
- uva 253 Cube painting
- UVA 253 Cube painting
- 253 - Cube painting UVA
- UVa 253 Cube painting
- UVA-253-Cube painting
- UVa 253 - Cube painting
- UVA 253 Cube painting
- win10环境下安装ubuntu出现的问题
- 【BZOJ4009】[HNOI2015]接水果
- Circular Sequence UVA
- 数据库第4天
- PHP递归遍历目录,递归删除目录及文件
- Cube painting UVA
- 数据库第5天
- 蓝桥 打印图形
- Material Design之RippleDrawable详解
- 【Linux init】systemd 服务单元管理
- 算法导论B树
- Python笔记-类和实例、继承和多态
- Spreadsheet Tracking
- Python爬虫之——爬取妹子图片