第八周历届试题带分数
本文最后更新于 1803 天前,其中的信息可能已经有所发展或是发生改变。
#include<iostream>
#include<cstring>
using namespace std;
int ch[10],ch1[10000][10];
int s[10][2],k=0;
void dg(int step){
	//cout<<"进入递归"<<step<<endl;
	if(step==10){
		for(int ij=0;ij<10;ij++){
			cout<<ch[ij];
		}
		cout<<endl;
	}
		for(int i=0;i<10;i++){
			if(s[i][1]==0){
				ch[step]=s[i][0];
				s[i][1]=1;
				dg(step+1);
				s[i][1]=0;
				ch[step]=0;
			}		
		}

	
}
int main(){
	memset(ch,0,sizeof(ch));
	memset(ch1,0,sizeof(ch1));
	for(int i=0;i<10;i++){
		s[i][0]=i;
		s[i][1]=0;
	}
	dg(0);
	for(int i=0;i<k;i++){
		cout<<ch1[i];
	}
	return 0;
}
作者:Yuyy
博客:https://yuyy.info
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇