level 1
一个俩位整数,如果将它的个位与十位对调,则产生另一个正整数,通常将后者称为前者的对调数。现在给它一个俩位的正整数,编写程序找出另一个正整数,使得这俩个俩位正整数之和等于它们各自对调之和。例如56+10=65+1,63+14=36+41,......等等。
2012年04月13日 03点04分
1
level 9
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim A10 As Integer, Age As Integer
Dim b10 As Integer, Bge As Integer For i As Integer = 10 To 99
A10 = i \ 10
Age = i Mod 10
For j As Integer = 10 To 99
B10 = j \ 10
Bge = j Mod 10
If i + j = (Age * 10 + A10) + (Bge * 10 + b10) Then
Debug.Print(i & "+" & j & "=" & (Age * 10 + A10) & "+" & (Bge * 10 + b10))
Continue For
End If
Next
Next
End Sub
End Class
2012年04月14日 03点04分
2
level 9
以下是所得结果:
10+12=1+21
10+23=1
+3
2
10+34=1+43
10+45=1+54
10+56=1+65
10+67=1+76
10+78=1+87
10+89=1+98
11+11=11+11
11+22=11+22
11+33=11+33
11+44=11+44
11+55=11+55
11+66=11+66
11+77=11+77
11+88=11+88
11+99=11+99
12+10=21+1
12+21=21+12
12+32=21+23
12+43=21+34
12+54=21+45
12+65=21+56
12+76=21+67
12+87=21+78
12+98=21+89
13+20=31+2
13+31=31+13
13+42=31+24
13+53=31+35
13+64=31+46
13+75=31+57
13+86=31+68
13+97=31+79
14+30=41+3
14+41=41+14
14+52=41+25
14+63=41+36
14+74=41+47
14+85=41+58
14+96=41+69
15+40=51+4
15+51=51+15
15+62=51+26
15+73=51+37
15+84=51+48
15+95=51+59
16+50=61+5
16+61=61+16
16+72=61+27
16+83=61+38
16+94=61+49
17+60=71+6
17+71=71+17
17+82=71+28
17+93=71+39
18+70=81+7
18+81=81+18
18+92=81+29
19+80=91+8
19+91=91+19
20+13=2+31
20+24=2+42
20+35=2+53
20+46=2+64
20+57=2+75
20+68=2+86
20+79=2+97
21+12=12+21
21+23=12+32
21+34=12+43
21+45=12+54
21+56=12+65
21+67=12+76
21+78=12+87
21+89=12+98
22+11=22+11
22+22=22+22
22+33=22+33
22+44=22+44
22+55=22+55
22+66=22+66
22+77=22+77
22+88=22+88
22+99=22+99
23+10=32+1
23+21=32+12
23+32=32+23
23+43=32+34
23+54=32+45
23+65=32+56
23+76=32+67
23+87=32+78
23+98=32+89
24+20=42+2
24+31=42+13
24+42=42+24
24+53=42+35
24+64=42+46
24+75=42+57
24+86=42+68
24+97=42+79
25+30=52+3
25+41=52+14
25+52=52+25
25+63=52+36
25+74=52+47
25+85=52+58
25+96=52+69
26+40=62+4
26+51=62+15
26+62=62+26
26+73=62+37
26+84=62+48
26+95=62+59
27+50=72+5
27+61=72+16
27+72=72+27
27+83=72+38
27+94=72+49
28+60=82+6
28+71=82+17
28+82=82+28
28+93=82+39
29+70=92+7
29+81=92+18
29+92=92+29
30+14=3+41
30+25=3+52
30+36=3+63
30+47=3+74
30+58=3+85
30+69=3+96
31+13=13+31
31+24=13+42
31+35=13+53
31+46=13+64
31+57=13+75
31+68=13+86
31+79=13+97
32+12=23+21
32+23=23+32
32+34=23+43
32+45=23+54
32+56=23+65
32+67=23+76
32+78=23+87
32+89=23+98
33+11=33+11
33+22=33+22
33+33=33+33
33+44=33+44
33+55=33+55
33+66=33+66
33+77=33+77
33+88=33+88
33+99=33+99
34+10=43+1
34+21=43+12
34+32=43+23
34+43=43+34
34+54=43+45
34+65=43+56
34+76=43+67
34+87=43+78
34+98=43+89
35+20=53+2
35+31=53+13
35+42=53+24
35+53=53+35
35+64=53+46
35+75=53+57
35+86=53+68
35+97=53+79
36+30=63+3
36+41=63+14
36+52=63+25
36+63=63+36
36+74=63+47
36+85=63+58
36+96=63+69
37+40=73+4
37+51=73+15
37+62=73+26
37+73=73+37
37+84=73+48
37+95=73+59
38+50=83+5
38+61=83+16
38+72=83+27
38+83=83+38
38+94=83+49
39+60=93+6
39+71=93+17
39+82=93+28
39+93=93+39
40+15=4+51
40+26=4+62
40+37=4+73
40+48=4+84
40+59=4+95
41+14=14+41
41+25=14+52
41+36=14+63
41+47=14+74
41+58=14+85
41+69=14+96
2012年04月14日 03点04分
3
level 9
42+13=24+31
42+24=24+42
42+35=24+53
42+46=24+64
42+57=24+75
42+68=24+86
42+79=24+97
43+12=34+21
43+23=34+32
43+34=34+43
43+45=34+54
43+56=34+65
43+67=34+76
43+78=34+87
43+89=34+98
44+11=44+11
44+22=44+22
44+33=44+33
44+44=44+44
44+55=44+55
44+66=44+66
44+77=44+77
44+88=44+88
44+99=44+99
45+10=54+1
45+21=54+12
45+32=54+23
45+43=54+34
45+54=54+45
45+65=54+56
45+76=54+67
45+87=54+78
45+98=54+89
46+20=64+2
46+31=64+13
46+42=64+24
46+53=64+35
46+64=64+46
46+75=64+57
46+86=64+68
46+97=64+79
47+30=74+3
47+41=74+14
47+52=74+25
47+63=74+36
47+74=74+47
47+85=74+58
47+96=74+69
48+40=84+4
48+51=84+15
48+62=84+26
48+73=84+37
48+84=84+48
48+95=84+59
49+50=94+5
49+61=94+16
49+72=94+27
49+83=94+38
49+94=94+49
50+16=5+61
50+27=5+72
50+38=5+83
50+49=5+94
51+15=15+51
51+26=15+62
51+37=15+73
51+48=15+84
51+59=15+95
52+14=25+41
52+25=25+52
52+36=25+63
52+47=25+74
52+58=25+85
52+69=25+96
53+13=35+31
53+24=35+42
53+35=35+53
53+46=35+64
53+57=35+75
53+68=35+86
53+79=35+97
54+12=45+21
54+23=45+32
54+34=45+43
54+45=45+54
54+56=45+65
54+67=45+76
54+78=45+87
54+89=45+98
55+11=55+11
55+22=55+22
55+33=55+33
55+44=55+44
55+55=55+55
55+66=55+66
55+77=55+77
55+88=55+88
55+99=55+99
56+10=65+1
56+21=65+12
56+32=65+23
56+43=65+34
56+54=65+45
56+65=65+56
56+76=65+67
56+87=65+78
56+98=65+89
57+20=75+2
57+31=75+13
57+42=75+24
57+53=75+35
57+64=75+46
57+75=75+57
57+86=75+68
57+97=75+79
58+30=85+3
58+41=85+14
58+52=85+25
58+63=85+36
58+74=85+47
58+85=85+58
58+96=85+69
59+40=95+4
59+51=95+15
59+62=95+26
59+73=95+37
59+84=95+48
59+95=95+59
60+17=6+71
60+28=6+82
60+39=6+93
61+16=16+61
61+27=16+72
61+38=16+83
61+49=16+94
62+15=26+51
62+26=26+62
62+37=26+73
62+48=26+84
62+59=26+95
63+14=36+41
63+25=36+52
63+36=36+63
63+47=36+74
63+58=36+85
63+69=36+96
64+13=46+31
64+24=46+42
64+35=46+53
64+46=46+64
64+57=46+75
64+68=46+86
64+79=46+97
65+12=56+21
65+23=56+32
65+34=56+43
65+45=56+54
65+56=56+65
65+67=56+76
65+78=56+87
65+89=56+98
66+11=66+11
66+22=66+22
66+33=66+33
66+44=66+44
66+55=66+55
66+66=66+66
66+77=66+77
66+88=66+88
66+99=66+99
67+10=76+1
67+21=76+12
67+32=76+23
67+43=76+34
67+54=76+45
67+65=76+56
67+76=76+67
67+87=76+78
67+98=76+89
68+20=86+2
68+31=86+13
68+42=86+24
68+53=86+35
68+64=86+46
68+75=86+57
68+86=86+68
68+97=86+79
69+30=96+3
69+41=96+14
69+52=96+25
69+63=96+36
69+74=96+47
69+85=96+58
69+96=96+69
70+18=7+81
70+29=7+92
71+17=17+71
71+28=17+82
71+39=17+93
72+16=27+61
72+27=27+72
72+38=27+83
72+49=27+94
73+15=37+51
73+26=37+62
73+37=37+73
73+48=37+84
2012年04月14日 03点04分
4