這個題目在小學的6年級作業中看到。不過限定了隻用+與x。這種題目好像我讀小學的時候沒見過。比較開放,大部分小孩做不出。如果四個運算符都用,可能大人也做不出來。沒有算法。
你的程序好像是用窮舉法?是不是可以算出來?
這個題目在小學的6年級作業中看到。不過限定了隻用+與x。這種題目好像我讀小學的時候沒見過。比較開放,大部分小孩做不出。如果四個運算符都用,可能大人也做不出來。沒有算法。
你的程序好像是用窮舉法?是不是可以算出來?
•
沒有很大分別,無非就是多花些時間(窮舉出來)而已。不用窮舉,雖然容易,但是什麽時候完成就不知道了。。。
-在城裏-
♂
(1435 bytes)
()
01/07/2016 postreply
07:46:37
•
你這個搞複雜了。題目是要你往空白裏麵填入運算操作符。我事先沒講清楚。隻用+與x。後麵這個數可能會變。如:
-hot_powerz-
♂
(238 bytes)
()
01/07/2016 postreply
10:51:57
•
這個問題答案。。。
-在城裏-
♂
(434 bytes)
()
01/07/2016 postreply
19:15:26
•
還是不對啊,你把人家數字的順序打亂了?這不叫往裏麵填運算符:=)
-hot_powerz-
♂
(0 bytes)
()
01/07/2016 postreply
19:24:22
•
剛才疏忽了。
-在城裏-
♂
(0 bytes)
()
01/07/2016 postreply
19:25:12
•
好厲害,沒有考倒你啊!求代碼!
-hot_powerz-
♂
(169 bytes)
()
01/07/2016 postreply
19:27:13
•
代碼在這裏:
-在城裏-
♂
(1387 bytes)
()
01/07/2016 postreply
19:45:35
•
好精煉的代碼,多少年的功力?再讚!以後代碼問題就找你了!
-hot_powerz-
♂
(0 bytes)
()
01/07/2016 postreply
21:37:03
•
沒問題!我們一起共同進步。。。
-在城裏-
♂
(0 bytes)
()
01/08/2016 postreply
05:39:43
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy