-
Notifications
You must be signed in to change notification settings - Fork 0
/
P1Q7.txt
83 lines (74 loc) · 1.64 KB
/
P1Q7.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
A:
f(1, 4)
f(2, 4)
f(3, 4)
f(4, 4)
cout << 4
cout << 4
f(3, 3)
cout << 3
cout << 234
f(2, 3)
f(3, 3)
cout << 3
cout << 23
f(2, 2)
cout << 2
cout << 1234
f(1, 3)
f(2, 3)
f(3, 3)
cout << 3
cout << 23
f(2, 2)
cout << 2
cout << 123
f(1, 2)
f(2, 2)
cout << 2
cout << 12
f(1, 1)
cout << 1
final result: 43432343232123432321232121
B:
f(16)
f(2)
cout << 2
cout << 16
f(4)
f(0)
cout << 0
cout << 4
f(1)
cout << 1
cout << 4
f(2)
cout << 2
cout << 16
f(8)
f(1)
cout << 1
cout << 8
f(2)
cout << 2
cout << 8
f(4)
f(0)
cout << 0
cout << 4
f(1)
cout << 1
cout << 4
f(2)
cout << 2
final result: 2160414216182804142
C:
f(4)
f(3)
f(2)
f(1)
cout << 1
cout << 21
cout << 321
cout << 4321
final result: 1213214321