|
[求助]生成所有五位的整数 求算法
输入字符串 输入整数都可以啊 你愿意的话也可以输入整数 然后出来再变换一样的 呵呵! 我只是把输入的数据用字符串来处理 比如 12345 就是字符串12345 str[0] = '1' str[1] = '2' 以此类推 然后穷举所有不重复的组合! 这个方法比较暴力 把事情都丢给电脑做了,不适合大量数据,但是如果只是5个的话 那还是可以的 |
|
[求助]生成所有五位的整数 求算法
#include "stdio.h" int main() { char str[20]; while (scanf("%s", str) != EOF) { for (int i=0; i<5; i++) { char buf[20] = {0}; buf[0] = str[i]; for (int j=0; j<5; j++) { buf[1] = str[j]; if (buf[0] != buf[1]) { for (int m=0; m<5; m++) { buf[2] = str[m]; if (buf[2] != buf[1] && buf[2] != buf[0]) { for (int n=0; n<5; n++) { buf[3] = str[n]; if (buf[3] != buf[2] && buf[3] != buf[1] && buf[3] != buf[0]) { for (int x=0; x<5; x++) { buf[4] = str[x]; if (buf[4] != buf[3] && buf[4] != buf[2] && buf[4] != buf[1] && buf[4] != buf[0]) { printf("%s\n", buf); } } } } } } } } } } return 0; } 来这个满足你要求,哈哈!!穷举 |
|
27岁了,从头学起还行么?
哎 我就是太功利了 。。。。。冷静 |
|
[求助]第十章输入表问题
来到第一个的文件偏移位置 每四个字节存储一个函数名称得地址,以一个全0的结构结束,用16进制工具打开书本自带的例子,自己算算是不是一共是11个4个字节。。。。? 什么地方看不懂? |
|
[求助]再看加密解密三前需要什么知识
光会汇编就看加密与解密三 估计会有想死的感觉 |
|
调试文件中,遇到OD直接 已终止的 情况
成功解决了 也不说一下什么状况 晕啊! |
|
|
|
[原创]自己写的VS对战平台盗号小程序,高手就不用看了~
我接触过编程 有一点点的编程基础 但是很遗憾的是 我看不懂! |
|
[求助]看完16位汇编再看32位 发觉差别好巨大啊
太快了??什么意思呢?看得太快了??还是??? 但是我看16位汇编 就是王爽老师那本书 课后的所有题目包括课程都是 亲手写出程序 并调试成功后才过到下一章的哦!!! 32位汇编 学的是API函数 API函数我现在的理解好像是就类似与 16位汇编时的中断程序的那些东西 应该是很多不同功能的程序的一个大合集 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值