委派任务
来源:互联网 发布:以网络为话题的作文800 编辑:程序博客网 时间:2024/04/29 18:06
/**Copyright (c)2014,烟台大学计算机与控制工程学院*All rights reserved.*文件名称:gcd.cpp*作 者:惠睿*完成日期:2014年2月12日*版 本 号:v1.0**问题描述:委派任务。*/#include <iostream>using namespace std;int main(){ int a,b,c,d,e,f,count=0; for(a=0; a<2; a++) for(b=0; b<2; b++) for(c=0; c<2; c++) for(d=0; d<2; d++) for(e=0; e<2; e++) for(f=0; f<2; f++) if(a+b>1 && (a+d)!=2 && a+e+f==2 && (b+c==0 || b+c==2) && c+d==1 && (d+e==0 || d==1)) { ++count; cout<<count<<" : "<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<" "<<f<<endl; } return 0;}
运行结果:
0 0
- 委派任务
- 委派任务
- 委派任务
- 委派任务
- 委派任务。
- 委派任务
- 委派任务
- 委派任务
- 委派任务
- 委派任务
- 委派任务
- 委派任务
- 委派任务
- 任务委派
- 委派任务
- 委派任务
- 委派任务
- 任务:委派任务
- windows下SVN服务器搭建与TortoiseSVN的结合使用
- 安全删除NTFS磁盘数据文件
- ImageView的属性android:scaleType作用
- git rebase
- 安全删除FAT磁盘数据文件
- 委派任务
- Android系统容量检测 —— Environment 和StatFs
- 解决ActionBar Item 一直出现在Action OverFlow的问题
- shell变量
- 期货
- 蓝桥杯 2014 地宫取宝
- linux常用命令
- Centos 配置iptables防火墙
- android 获取外置SD卡的路径