摘要: 题目: //QQ是一个9位数,由1,2,3,4,5,9组成,且第1、6位数字相同,第2、4位数字相同,第5、7位数字相同。 //我的QQ就在符合上诉条件中的所有9位数从小到大排第50个 很丑的六循环,想知道别的解法 可是 我 找 不 到!! #include <iostream>#include < 阅读全文
posted @ 2017-11-08 17:34 Ruohua3kou 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>#include <string>using namespace std;void DFS(string a,int i,int j){ if(i>=j) cout<<a<<endl; else for(int k=i;k 阅读全文
posted @ 2017-11-08 16:51 Ruohua3kou 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 画图就是。。找。。规。。律 #include <iostream>using namespace std;int main(){ int T; cin>>T; while(T--) {int n; int width=1; int lowHeight; char r; cin>>r>>n; widt 阅读全文
posted @ 2017-11-08 08:56 Ruohua3kou 阅读(138) 评论(0) 推荐(0) 编辑