這是不能計算出單價的,這問題在數學上屬於不定方程,理論上有無窮多解,假定鋼筆單價x,鉛筆y,那麼
2776x+3456y=272224,無法求出x,y的,除非還有其他條件,下面是示例,在鋼筆價格是1--98元之間,鉛筆的價格,如果鋼筆價格不是整數,答案更多了
x y
1 77.96527778
2 77.16203704
3 76.3587963
4 75.55555556
5 74.75231481
6 73.94907407
7 73.14583333
8 72.34259259
9 71.53935185
10 70.73611111
11 69.93287037
12 69.12962963
13 68.32638889
14 67.52314815
15 66.71990741
16 65.91666667
17 65.11342593
18 64.31018519
19 63.50694444
20 62.7037037
21 61.90046296
22 61.09722222
23 60.29398148
24 59.49074074
25 58.6875
26 57.88425926
27 57.08101852
28 56.27777778
29 55.47453704
30 54.6712963
31 53.86805556
32 53.06481481
33 52.26157407
34 51.45833333
35 50.65509259
36 49.85185185
37 49.04861111
38 48.24537037
39 47.44212963
40 46.63888889
41 45.83564815
42 45.03240741
43 44.22916667
44 43.42592593
45 42.62268519
46 41.81944444
47 41.0162037
48 40.21296296
49 39.40972222
50 38.60648148
51 37.80324074
52 37
53 36.19675926
54 35.39351852
55 34.59027778
56 33.78703704
57 32.9837963
58 32.18055556
59 31.37731481
60 30.57407407
61 29.77083333
62 28.96759259
63 28.16435185
64 27.36111111
65 26.55787037
66 25.75462963
67 24.95138889
68 24.14814815
69 23.34490741
70 22.54166667
71 21.73842593
72 20.93518519
73 20.13194444
74 19.3287037
75 18.52546296
76 17.72222222
77 16.91898148
78 16.11574074
79 15.3125
80 14.50925926
81 13.70601852
82 12.90277778
83 12.09953704
84 11.2962963
85 10.49305556
86 9.689814815
87 8.886574074
88 8.083333333
89 7.280092593
90 6.476851852
91 5.673611111
92 4.87037037
93 4.06712963
94 3.263888889
95 2.460648148
96 1.657407407
97 0.854166667
98 0.050925926
這是不能計算出單價的,這問題在數學上屬於不定方程,理論上有無窮多解,假定鋼筆單價x,鉛筆y,那麼
2776x+3456y=272224,無法求出x,y的,除非還有其他條件,下面是示例,在鋼筆價格是1--98元之間,鉛筆的價格,如果鋼筆價格不是整數,答案更多了
x y
1 77.96527778
2 77.16203704
3 76.3587963
4 75.55555556
5 74.75231481
6 73.94907407
7 73.14583333
8 72.34259259
9 71.53935185
10 70.73611111
11 69.93287037
12 69.12962963
13 68.32638889
14 67.52314815
15 66.71990741
16 65.91666667
17 65.11342593
18 64.31018519
19 63.50694444
20 62.7037037
21 61.90046296
22 61.09722222
23 60.29398148
24 59.49074074
25 58.6875
26 57.88425926
27 57.08101852
28 56.27777778
29 55.47453704
30 54.6712963
31 53.86805556
32 53.06481481
33 52.26157407
34 51.45833333
35 50.65509259
36 49.85185185
37 49.04861111
38 48.24537037
39 47.44212963
40 46.63888889
41 45.83564815
42 45.03240741
43 44.22916667
44 43.42592593
45 42.62268519
46 41.81944444
47 41.0162037
48 40.21296296
49 39.40972222
50 38.60648148
51 37.80324074
52 37
53 36.19675926
54 35.39351852
55 34.59027778
56 33.78703704
57 32.9837963
58 32.18055556
59 31.37731481
60 30.57407407
61 29.77083333
62 28.96759259
63 28.16435185
64 27.36111111
65 26.55787037
66 25.75462963
67 24.95138889
68 24.14814815
69 23.34490741
70 22.54166667
71 21.73842593
72 20.93518519
73 20.13194444
74 19.3287037
75 18.52546296
76 17.72222222
77 16.91898148
78 16.11574074
79 15.3125
80 14.50925926
81 13.70601852
82 12.90277778
83 12.09953704
84 11.2962963
85 10.49305556
86 9.689814815
87 8.886574074
88 8.083333333
89 7.280092593
90 6.476851852
91 5.673611111
92 4.87037037
93 4.06712963
94 3.263888889
95 2.460648148
96 1.657407407
97 0.854166667
98 0.050925926