1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 |
#include <iostream> #include <cstring> #include <cmath> using
namespace
std; void
HUI() { int
i,j,y,z; for (i=1;i<=9;i++) for (j=0;j<=9;j++) for (y=0;y<=9;y++) for (z=0;z<=9;z++) if (z==i&&y==j) cout<<i<<j<<y<<z<<endl; } int
main() { HUI(); return
0; } |
此代码仅供参考
原文:http://www.cnblogs.com/MonkeyAC/p/3532906.html