- 2024-10-2110月21日记录
下午学习了java语言继承与派生;完善了四则运算的二三四年级的代码;importjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;importjava.util.Map;importjava.util.Random;importjava.util.Scanner;importjava.io.BufferedWriter;importjava.io.F
- 2024-04-22结对编码-软件开发与创新课程设计
一、题目及运行环境1.小组成员2252331与22523362.题目小学老师要每周给同学出300道四则运算练习题。这个程序有很多种实现方式:C/C++C#/VB.net/JavaExcelUnixShellEmacs/Powershell/VbscriptPerlPython两个运算符,100以内的数字,不需要写答案。需要检查答案是否正
- 2022-09-05MathProblem 84 12 pearls and a scale problem
Infrontofyouare12pearls,11beingrealandonefake.Therealonesallweighthesameandthefakeonediffersinweightfromtherealones(mayweighmo
- 2022-09-03MathProblem 80 128 pennies and a blindfold problem
Youareblindfoldedbeforeatable.Onthetableareaverylargenumberofpennies.Youaretold128ofthepenniesareheadsupandtherestaretailsup.Ho
- 2022-09-03MathProblem 79 Three humans, three monkeys, and a boat problem
Oneonesideofariverarethreehumans,onebigmonkey,twosmallmonkeys,andoneboat.Eachofthehumansandthebigmonkeyarestrongenoughtorowtheb
- 2022-08-31MathProblem 76 Two bags and marble problem
Youchooseoneoftwoidenticallookingbagsatrandom.Onebaghasthreeblackmarblesandonewhitemarble.Theotherhasthreewhitemarblesandoneblackm
- 2022-08-31MathProblem 71 Nine pearls and a scale problem
Youhaveninepearls,eightarerealandoneisfake.Alltherealonesweighthesameandthefakeweighslessthantherealones.Usingabalancescaletwice
- 2022-08-31MathProblem 68 Four weights and a scale problem
Usingabalancescaleandfourweightsyoumustbeabletobalanceanyintegerloadfrom\(1\)to\(40\).Howmuchshouldeachofthefourweightsweigh?Solut
- 2022-08-29MathProblem 59 Two primes problem
Showthatanyprimenumberotherthan2canbeexpressedasthedifferenceoftwosquares,whereeachsquareisanintegersquared.Solution任何质数都是奇数。
- 2022-08-28MathProblem 52 Two children problem
Awomanischosenatrandomamongallwomenthathavetwochildren.Sheisaskeddoyouhaveatleastoneboy,andsheanswers'yes.'Whatistheprobabilityh
- 2022-08-28MathProblem 51 Maximum volume of cone problem
Youhaveatortillawithradius1andwishtoformacone.Youmaycutoutanywedgeyoulikefromthetortilla.Thepointofthewedgemustbeatthecentero
- 2022-08-27MathProblem 43 Wall and two houses problem
Thereisacastlesurroundedbyacircularwall.Thewallhasanorthgateandasouthgate.Ayellowhouselays3milesnorthofthenorthgate.Abluehouse
- 2022-08-27MathProblem 42 Drunken walk problem #1
Adrunkisononepointofann-gon,suchthatnisanevennumber.Thedrunkmovesalongtheperimeterofthen-gon.Eachstepstakeshimtoanadjacentpoint
- 2022-08-21MathProblem 39 Zeros and ones problem
Whatisthesmallestintegergreaterthan0thatcanbewrittenentirelywithzerosandonesandisevenlydivisibleby225?Solution将其分解:\[225=5\times
- 2022-08-17MathProblem 38 Meeting at a restaurant problem
Twopeoplearriveinarestaurantindependently.Eacharrivesarandomtimebetween5pmand6pm,distributeduniformaly(nomomentinthisrangeisanymoreli
- 2022-08-17MathProblem 37 Common birthday problem
Whatistheminimumnumberofpeopledoyouneed,chosenatrandom,sothatthereisatleasta50%chancethatatleasttwohavethesamebirthday.Assumetha
- 2022-08-16MathProblem 35 Light bulb problem #1
Youhavetenlightbulbs.Fivehaveanaveragelifeof100hours,andtheotherfivehaveaaveragelifeof200hours.Theselightbulbshaveamemorylessprop
- 2022-08-15MathProblem 34 Drug test problem
10%ofthepeopleinacertainpopulationuseanillegaldrug.Adrugtestyieldsthecorrectresult90%ofthetime,whetherthepersonusesdrugsornot.Ar
- 2022-08-15MathProblem 31 Compound interest problem #1
Whatisthevalueof$1,investedforoneyearat100%interest,compoundedinfinitely?SolutionGenerally,thevalueof$1investedfor\(n\)yearsatinteres
- 2022-08-14MathProblem 29 Four dogs and a square problem
Fourdogsoccupythefourcornersofasquarewithsideoflengtha.Atthesametimeeachdogstartswalkingatthesamespeeddirectlytowardthedogonhis
- 2022-08-14MathProblem 28 Furniture factory problem
Afactorythatproducestablesandchairsisequippedwith10saws,6lathes,and18sandingmachines.Ittakesachair10minutesonasaw,5minutesonalat
- 2022-08-13MathProblem 25 Guess the age problem
Personxandyhavethefollowingconversation:x:Iforgothowoldyourthreekidsare.y:Theproductoftheiragesis36.x:Istilldon'tknowtheirages.