自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

artistkeepmonkey的博客

玩乐中写程序

  • 博客(7)
  • 收藏
  • 关注

原创 蓝桥 基础练习 2n皇后问题 c++

问题描述  给定一个n*n的棋盘,棋盘中有一些位置不能放皇后。现在要向棋盘中放入n个黑皇后和n个白皇后,使任意的两个黑皇后都不在同一行、同一列或同一条对角线上,任意的两个白皇后都不在同一行、同一列或同一条对角线上。问总共有多少种放法?n小于等于8。输入格式  输入的第一行为一个整数n,表示棋盘的大小。  接下来n行,每行n个0或1的整数,如果一个整数为1,表示对应的位置可以放皇后,如果一个整数为0...

2018-05-22 20:09:05 348

原创 uva725

#include<iostream>#include<sstream>#include<cstring>#include<string>#include<cstdio>using namespace std;int a[10];int Q;string re(const int num){ string s; stringstream w...

2018-05-17 14:04:15 412

原创 uva572 dfs求连通块 经典问题

#include<iostream>#include<cstring>#include<cstdio>using namespace std;const int maxn=105;char map[maxn][maxn]; int idx[maxn][maxn];void dfs(int a,int b);int row,col,sum;void algo(){...

2018-05-11 21:36:41 265

原创 uva297 四叉树 递归

#include<iostream>#include<cstdio>using namespace std;struct node{ node* row[4]; char colar; node(char c) {  row[1]=row[2]=row[3]=row[4]=NULL;  colar=c;// }};node* newnode(char c){ return ...

2018-05-10 11:41:16 342

原创 uva548 由树的中序后序遍历生成树

哪里有疑问评论问就好#include<iostream>#include<algorithm>#include<vector>#include<cstdio>using namespace std;struct node{ node *left; node *right; int value; node():left(NULL),right(NULL...

2018-05-08 19:34:50 369

原创 c++数字型string与int的转化 贼简单!

#include<iostream>#include<sstream>   //流之头文件using namespace std;int main(){ stringstream water;//定义一个水流  string s; int box; s="12345"; water<<s;//字符串向水中流  //water.str("");//清空流  wat...

2018-05-03 11:07:47 236

原创 uva 1592 代码无解析 可以评论问

妙个鸡儿。。。。。。。#include<iostream>#include<map>#include<string>#include<string.h>#include<cstdio>#include<vector>using namespace std;int aaa[10005][15];int counts;map&lt...

2018-05-01 09:19:47 307

End-to-End Freehand Sketch-to-Image Generation 模型、数据、代码

End-to-End Freehand Sketch-to-Image Generation论文对应的 模型、数据、代码

2023-05-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除