noj大作业

合集下载

我们的作业Immediate Constituent Analysis

我们的作业Immediate Constituent Analysis

B : The girl
1. What is “constituent”?
Constituent is a term used in structure sentence analysis for every linguistic unite, which is a part of a large linguistic. Several constituents together form a construction.
• In this sense, we can take all the Grammatical Units in our text book into several syntactic categories like the following list: • Word level Phrasal • N=noun NP=noun phrase • A=adjective AP=adjective phrase • V=verb VP=verb phrase • P=preposition PP=preposition phrase • Det=determiner S=sentence or clause • Adv=adverb • Conj=conjuction
6,Features of IC Analysis
Q1: What is the advantage of IC Analysis? Q2: What is the disadvantage of IC Analysis?
• Ex. The man sees a dog on the hill. Q: what is the meaning of the sentence? And draw the tree diagram. The ambiguity exists in the sentence. (a) The man sees a dog. And a dog is on the hill. (b) The man is on the hill. And the man sees a dog.

牡丹江2024年02版小学3年级上册第十一次英语第四单元暑期作业(含答案)

牡丹江2024年02版小学3年级上册第十一次英语第四单元暑期作业(含答案)

牡丹江2024年02版小学3年级上册英语第四单元暑期作业(含答案)考试时间:90分钟(总分:100)B卷考试人:_________题号一二三四五总分得分一、综合题(共计100题共100分)1. 听力题:The chemical properties of a substance are determined by its ______.2. 填空题:I saw a _______ (小鸭子) swimming in the pond.3. 填空题:I have ________ (两只) cats at home.4. 填空题:I saw a _______ (小皮卡丘) in the park.5. 听力题:The tree is ______ (full) of ripe apples.6. 填空题:The first successful heart surgery was performed by _______. (克里斯托弗·里德)7. 填空题:I have a plant that thrives in _____.8. 填空题:Certain plants are prized for their ______ and use in landscape design.(某些植物因其美丽和在景观设计中的应用而受到赞赏。

)9. 选择题:What is 7 + 2?A. 8B. 9C. 10D. 11答案:B10. 听力题:Rocks can be classified based on their ______ properties.11. 选择题:What is the capital of Cyprus?A. NicosiaB. LimassolC. LarnacaD. Famagusta答案: A. Nicosia12. 听力题:A base feels slippery and can turn __________ paper blue.13. 选择题:What do we call the process of water turning into vapor?A. EvaporationB. CondensationC. PrecipitationD. Sublimation14. 选择题:What do we call a person who plays music?A. ArtistB. MusicianC. PainterD. Writer15. 选择题:What is the main ingredient in pizza?A. BreadB. CheeseC. Tomato sauceD. All of the above答案: D16. 填空题:My hamster runs so fast on its ______ (轮子).17. 听力题:Light travels in ______ (straight) lines.18. 选择题:What is 8 x 8?A. 64B. 72C. 56D. 48答案:A19. 填空题:My favorite game is _______ (视频游戏).20. 选择题:Which of these is a type of transportation?A. BicycleB. TreeC. HouseD. Mountain答案:A21. 选择题:Which fruit is yellow and curved?A. AppleB. BananaC. OrangeD. Grape22. 填空题:My favorite toy is a stuffed ______.23. 填空题:My grandmother makes the best __________ (点心).24. 听力题:A __________ is a natural resource that needs conservation.25. 听力题:A __________ is a small insect that can fly.26. 听力题:Chemical reactions often involve the breaking and forming of ______.27. 填空题:I want to learn how to ________.28. 填空题:The capital of Egypt is ________ (埃及的首都是________).29. 听力题:The sun rises in the ______ (east).30. 填空题:We should _______ (share/keep) our toys.31. 选择题:What is the capital of Hungary?A. BudapestB. PragueC. ViennaD. Bucharest32. 听力题:His favorite sport is ______ (basketball).33. 填空题:_____ (carnivorous) plants eat insects.34. 填空题:A _____ (果蔬) plate is healthy and colorful.35. 听力题:I need to ______ my backpack before school. (pack)36. 听力题:The butterfly emerges from its _____ chrysalis.37. 听力题:The ______ helps distribute nutrients in plants.38. 填空题:My grandma shares her __________ (生活经验) with us.39. 选择题:What is the name of the highest water fall in the world?A. Angel FallsB. Niagara FallsC. Victoria FallsD. Iguazu Falls答案: A. Angel Falls40. 选择题:What is the main ingredient in chocolate?A. CocoaB. SugarC. MilkD. Butter答案:A41. 听力题:A ______ is often seen in gardens.42. 听力题:A __________ is a common pet that purrs.43. 填空题:The penguin is a bird that cannot _______ (飞).44. 听力题:She is a friendly ________.45. 填空题:__________ (可再生资源) are resources that can be replenished naturally.46. 选择题:What is the capital of India?A. MumbaiB. New DelhiC. KolkataD. Bangalore答案:B47. 听力题:The process of crystallization leads to the formation of __________.48. 听力题:I see a _____ (rainbow) after the rain.49. 填空题:中国的________ (artifacts) 让我们了解过去的文明。

python大作业代码及文档

python大作业代码及文档

python大作业代码及文档Python大作业代码及文档本次Python大作业使用Python语言编写,旨在提高Python编程能力和解决实际问题的能力。

本文介绍了代码的设计思路以及实现细节。

一. 项目说明这是一个基于Python的命令行应用程序,可以实现简单的文本处理功能。

具体功能包括:字符统计,单词统计,行数统计等。

用户可以输入自己想要统计的文件路径,程序会返回统计结果。

二. 代码结构代码主要分为3个文件,分别是main.py,fileHandler.py,textHandler.py。

1. main.pymain.py是程序的入口文件,用于启动整个程序。

代码首先通过input()函数获取用户需要统计的文件路径。

然后调用fileHandler.py中的isExist()函数判断该文件是否存在。

接下来调用textHandler.py中的countChar(),countWord(),countLine()分别进行字符统计,单词统计和行数统计。

最后将统计结果输出到控制台中。

2. fileHandler.pyfileHandler.py文件主要用于处理文件相关的操作,比如判断文件是否存在等。

代码首先通过os.path.exists()函数判断文件是否存在,如果不存在则返回False,否则返回True。

3. textHandler.pytextHandler.py文件主要用于处理文本文件的相关操作,比如字符统计、单词统计、行数统计等。

代码中的countChar()函数使用len()函数来计算字符串的长度,从而得出字符数。

countWord()函数则是通过split()函数将文本文件转化为单词列表,再使用len()函数进行统计。

countLine()函数则是通过读取文本文件的行数来获取文本文件的行数,其中使用了readlines()函数和len()函数。

三. 运行效果当用户输入文件路径后,程序将返回文件的字符数、单词数、行数,如下所示:请输入文件路径:D:\MyFiles\PythonFile\test.txt字符数: 4单词数: 1行数: 1四. 总结本次Python大作业中,我们编写了一个简单的文本处理程序,提高了Python编程能力和实际问题解决能力。

南昌2024年10版小学三年级J卷英语第1单元暑期作业

南昌2024年10版小学三年级J卷英语第1单元暑期作业

南昌2024年10版小学三年级英语第1单元暑期作业考试时间:80分钟(总分:110)B卷考试人:_________题号一二三四五总分得分一、综合题(共计100题)1、选择题:What is the name of the plant that grows in deserts?A. CactusB. FernC. RoseD. Oak2、What is the largest planet in our solar system?A. EarthB. MarsC. SaturnD. Jupiter答案:D3、听力题:I want to _____ (learn/forget) new things.4、听力题:The capital of Nicaragua is __________.5、听力题:The festival is very _______ (exciting).6、听力题:I love to ______ (dance) to music.7、听力题:I love ______ (chocolate) cake.8、What is the largest mammal in the ocean?A. DolphinB. SharkC. WhaleD. Octopus答案:C9、ta Stone helped scholars understand ______ (古埃及) writing. 填空题:The Rose10、How many days are in a year?A. 365B. 366C. 364D. 36011、听力题:A chemical reaction can involve the absorption of _____.12、Which instrument is a string instrument?A. PianoB. FluteC. GuitarD. Trumpet答案:C13、填空题:The ______ (小鸟) builds its nest with twigs and grass.14、听力题:The _____ is the center of our solar system.15、听力题:The chemical structure of DNA contains ______.16、听力题:A _____ is made up of two or more elements.17、What is the opposite of 'up'?A. DownB. LeftC. RightD. Across18、听力题:The chemical formula for acetic anhydride is ______.19、What type of tree produces pine cones?A. DeciduousB. EvergreenC. Fruit TreeD. Flowering答案:B20、What do you call a person who makes bread?A. BakerB. ChefC. CookD. Butcher答案: A21、听力题:The Crab Nebula is a famous ______ remnant.22、What is the capital of Syria?A. AleppoB. DamascusC. HomsD. Latakia23、填空题:The _______ (The Age of Exploration) opened new lands for colonization and trade.24、Which bird is known for its colorful feathers?A. SparrowB. EagleC. PeacockD. Pigeon答案:C25、听力题:Organic compounds always contain ______.26、听力题:The process of making yogurt involves bacterial _______.27、填空题:We often go ________ (远足) in the mountains.28、听力题:I can ________ my toys.29、听力题:Sublimation is the process of a solid turning directly into a ______.The ________ was an important document in American history.31、听力题:The Himalayas were formed by the collision of two tectonic ______.32、填空题:The ______ (狮子) lives in Africa and is very strong.33、What sound does a cow make?A. WoofB. MeowC. MooD. Quack34、选择题:What is the name of our planet?A. MarsB. VenusC. EarthD. Jupiter35、Which fruit is red and often associated with teachers?A. BananaB. AppleC. OrangeD. Grape36、填空题:The seal barks loudly on the _________. (岩石)37、填空题:A ________ (园艺设计) reflects personal style.38、听力题:Bees help ______ plants by pollinating.39、What is the opposite of "fast"?A. QuickB. SlowC. SpeedyD. Swift40、填空题:A cat's purr can be soothing and is often thought to be a sign of ________________ (幸福).A ______ (老虎) has a powerful build and sharp teeth.42、听力题:The cat is ___ the tree. (in)43、听力题:A hydrophobic substance repels ______.44、选择题:What is the name of the famous explorer who discovered America?A. Ferdinand MagellanB. Christopher ColumbusC. Marco PoloD. Vasco da Gama45、听力题:The chemical formula for calcium fluoride is _____.46、听力题:We are going to the ___. (fair)47、What is the capital of India?A. MumbaiB. DelhiC. BangaloreD. Kolkata48、听力题:Acids can change the color of indicators to ______.49、填空题:I share my secrets with my ____.50、选择题:What do you call the story of your life?A. BiographyB. AutobiographyC. NovelD. Fiction51、听力题:A __________ is formed when water evaporates and leaves minerals behind.52、选择题:What is the name of the famous art museum in Paris?B. Musée d'OrsayC. Centre PompidouD. Palais de Tokyo53、填空题:The _______ (The Magna Carta) limited the power of the monarchy.54、填空题:The first man-made satellite was ________ (斯普特尼克).55、听力题:We go _____ (skating) in winter.56、听力题:A pulley can change the direction of a ______.57、听力题:The dog is ________ and friendly.58、填空题:The rabbit nibbles on ______ (草). It is very ______ (可爱).59、Which animal is known for having a long neck?A. ElephantB. GiraffeC. RhinoD. Hippo60、听力题:The movement of water can reshape the ______.61、What do you call the person who teaches students?A. DoctorB. TeacherC. EngineerD. Pilot答案:B62、听力题:My dad cooks _____ (breakfast/lunch) on Sundays.63、What is the capital of Greece?A. AthensB. RomeC. Cairo答案:A64、填空题:The ______ (小鱼) swims gracefully in the aquarium.65、填空题:My brother has a passion for __________ (动物保护).66、听力题:The _____ (科学) project is interesting.67、Which of these is a type of weather?A. SunshineB. SandwichC. HomeworkD. Running68、Which fruit is yellow and curved?A. AppleB. BananaC. CherryD. Grape69、填空题:I have a teddy _____ (熊) on my bed.70、听力题:The _______ of an object can be tested using a pressure gauge.71、听力题:The __________ can provide insights into the health of an ecosystem.72、填空题:The __________ is a large body of ice moving slowly down a mountain. (冰川)73、填空题:My ___ (小狗) greets me at the door.74、填空题:The __________ is a famous natural wonder in the world. (大峡谷)75、What is the name of the famous fictional character who travels through time ina blue police box?A. Doctor WhoB. Sherlock HolmesC. Harry PotterD. Indiana Jones答案: A76、听力题:The bee collects _____ from flowers.77、What is the capital of St. Vincent and the Grenadines?A. KingstownB. CalliaquaC. BequiaD. Union Island答案: A78、What is the main purpose of a map?a. To tell timeb. To show directionsc. To display picturesd. To record events答案:b79、What do you call a person who fixes cars?A. DoctorB. EngineerC. MechanicD. Teacher答案:C80、What is the name of the largest mammal?A. ElephantB. Blue WhaleC. GiraffeD. Hippopotamus81、听力题:The _____ (家庭) is important.82、填空题:The __________ (历史的回顾性) fosters reflection.83、填空题:________ (环境影响) shapes plant variety.84、填空题:We have a ______ (愉快的) experience planned for the weekend.85、填空题:My sister enjoys __________ (参与) in extracurricular activities.86、What is the name of the famous landmark in Paris?A. Leaning Tower of PisaB. Eiffel TowerC. ColosseumD. Big Ben答案:B87、填空题:A mouse can fit through a ______ (小洞).88、What is the primary purpose of a fridge?A. To freeze foodB. To cool foodC. To cook foodD. To store food答案:B89、听力题:The bear's strength and power make it a formidable force in the ____.90、What do we call the practice of protecting endangered species?a. Conservationb. Preservationc. Restorationd. Rehabilitation答案:a91、选择题:How many legs does a spider have?A. 6B. 8C. 10D. 1292、填空题:I like to play ______ (钢琴).93、填空题:The __________ (热带雨林) is rich in biodiversity.94、How do you say "good morning" in Italian?A. BuongiornoB. BuonaseraC. BuonanotteD. Ciao95、听力题:I can ________ (adapt) to new situations.96、听力题:The puppy is ______ at the door. (scratching)97、填空题:I like to play doctor with my toy ________ (玩具名称).98、听力题:I like to _____ (参加) parties.99、听力题:The Age of Exploration began in the ________ century.100、How many players are in a rugby team?A. 10B. 13C. 15D. 17答案:C。

20秋季大工《人工智能》终年大作业

20秋季大工《人工智能》终年大作业

20秋季大工《人工智能》终年大作业介绍这份文档旨在说明20秋季大工《人工智能》课程的终年大作业。

本作业的目标是让学生综合应用所学的人工智能知识和技术,解决一个实际的问题或完成一个项目。

作业要求- 作业主题:学生可以根据自己的兴趣和专业背景选择一个合适的主题,但必须与人工智能相关。

- 独立完成:学生需要独立完成作业,不得寻求用户的帮助或借助他人的协助。

- 简单策略:学生应该根据自己的能力和专长,选择简单的策略和方法来解决问题,避免涉及复杂的法律问题。

- 内容确认:不要引用无法确认的内容,确保所提供的信息准确可信。

作业内容学生需要根据自己选择的主题,完成以下任务:1. 问题定义:明确问题的定义和目标,并解释为什么这个问题对人工智能领域具有重要性。

2. 数据收集:收集与问题相关的数据集,并进行预处理和清洗。

3. 模型选择:选择适合解决问题的人工智能模型或算法,并解释选择的原因。

4. 模型训练:使用选定的模型对数据进行训练,并进行模型调优。

5. 模型评估:评估训练好的模型的性能和准确度,解释评估结果。

6. 结果展示:将模型的结果以可视化的方式展示出来,并对结果进行解释和分析。

时间安排作业将在整个学年内进行,学生需要根据以下时间安排完成各个阶段:- 第一学期:- 问题定义和数据收集:9月初至10月底- 模型选择和训练:11月初至12月底- 第二学期:- 模型调优和评估:1月初至2月底- 结果展示和报告撰写:3月初至4月底评分标准作业将根据以下标准进行评分:- 问题定义和目标的清晰度和合理性- 数据收集和预处理的质量- 模型选择和训练的合适性和有效性- 模型评估和结果展示的准确性和可视化效果- 报告撰写和表达的清晰度和逻辑性提交要求学生需要按照要求将作业提交给授课教师或助教。

具体的提交要求将在课程开始时公布。

总结本次终年大作业旨在让学生综合运用人工智能知识和技术,解决一个实际的问题或完成一个项目。

通过完成这个作业,学生将加深对人工智能领域的理解和应用能力,并提升解决问题的能力和创新思维。

西工大noj答案解析(完整版)

西工大noj答案解析(完整版)

西北工业大学POJ答案绝对是史上最全版(不止100题哦……按首字母排序)1.“1“的传奇2.A+B3.A+BⅡ4.AB5.ACKERMAN6.Arithmetic Progressions7.Bee8.Checksum algorithm9.Coin Test10.Dexter need help11.Double12.Easy problem13.Favorite number14.Graveyard15.Hailstone16.Hanoi Ⅱ17.Houseboat18.Music Composer19.Redistribute wealth20.Road trip21.Scoring22.Specialized Numbers23.Sticks24.Sum of Consecutive25.Symmetric Sort26.The Clock27.The Ratio of gainers to losers28.VOL大学乒乓球比赛29.毕业设计论文打印30.边沿与内芯的差31.不会吧,又是A+B32.不屈的小蜗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.计算A+B68.计算PI69.计算π70.计算成绩71.计算完全数72.检测位图长宽73.检查图像文件格式74.奖金发放75.阶乘合计76.解不等式77.精确幂乘78.恐怖水母79.快速排序80.粒子裂变81.链表动态增长或缩短82.链表节点删除83.两个整数之间所有的素数84.路痴85.冒泡排序86.你会存钱吗87.逆序整数88.排列89.排列分析90.平均值函数91.奇特的分数数列92.求建筑高度93.区间内素数94.三点顺序95.山迪的麻烦96.删除字符97.是该年的第几天98.是该年的第几天?99.数据加密100.搜索字符101.所有素数102.探索合数世纪103.特殊要求的字符串104.特殊整数105.完全数106.王的对抗107.危险的组合108.文件比较109.文章统计110.五猴分桃111.小型数据库112.幸运儿113.幸运数字”7“114.选择排序115.寻找规律116.循环移位117.延伸的卡片118.羊羊聚会119.一维数组”赋值“120.一维数组”加法“121.勇闯天涯122.右上角123.右下角124.圆及圆球等的相关计算125.圆及圆球等相关计算126.程序员添加行号127.找出数字128.找幸运数129.找最大数130.整数位数131.重组字符串132.子序列的和133.子字符串替换134.自然数立方的乐趣135.字符串比较136.字符串复制137.字符串加密编码138.字符串逆序139.字符串排序140.字符串替换141.字符串左中右142.组合数143.最次方数144.最大乘积145.最大整数146.最小整数147.最长回文子串148.左上角149.左下角1.“1“的传奇#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){int n,i,j,k=0,x=1,y,z,m,p,q,a,s=0; scanf("%d",&n);m=n;for(i=1;i<12;i++){m=m/10;k++;if(m==0)break;}q=n;k=k-1;for(a=1;a<=k;a++){x=x*10;}y=q%x;z=q/x;p=q-y;if(z>=2)s=s+x+z*k*(x/10);elses=s+z*k*(x/10);for(j=p;j<=n;j++){m=j;for(i=1;i<12;i++) {x=m%10;if(x==1)s++;m=m/10;if(m==0)break;}}printf("%d",s);return 0;}2.A+B#include <stdio.h>int doubi(int n,int m) {n=n+m;n=n%100;return n;}int main(){int t,i,a[100],n,m;scanf("%d",&t);for (i=0;i<=(t-1);i++){ scanf("%d%d",&n,&m); a[i]=doubi(n,m);}for (i=0;i<=(t-1);i++)printf("%d\n",a[i]); return 0;}3.A+BⅡ#include <stdio.h>int main(){int A,B,sum;scanf("%d%d",&A,&B);sum=A+B;printf("%d\n",sum); return 0;}4.AB#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char s[100],q[100];double a,b,c;int n=0,i;scanf("%lf%lf",&a,&b);c=a*b;sprintf(s,"%.0lf",c);for(i=0;i<strlen(s);i++){n=n+s[i]-48;}while(n>=10){sprintf(q,"%d",n);n=0;for(i=0;i<strlen(q);i++) n=n+q[i]-48;}printf("%d",n);return 0;}5.ACKERMAN#include <stdio.h>#include <stdlib.h>#include <math.h>int ack(int x,int y){int n;if (x==0) {n=y+1;return n;}else if (y==0) n=ack(x-1,1);else n=ack(x-1,ack(x,y-1)); return n;}int main(){int m,b;scanf("%d%d",&m,&b);m=ack(m,b);printf("%d",m);return 0;}6.Arithmetic Progressions#include <stdio.h>#include <stdlib.h>#include <math.h>int g(int n){int i;if(n==1) return 0;if(n==2) return 1;if(n==3) return 1;for(i=2;i<=sqrt(n);i++) if(n%i==0) return 0; return 1;}int f(int a,int b,int c){int i=0,s=a-b;if(c==1&&g(a)==1) return a;if(b==0&&g(a)!=1) return -1;while(1){s=s+b;if(g(s)) i++;if(i>=c) break;}return s;int main(){int a,b,c,d[100],i=0,n;while(1){scanf("%d%d%d",&a,&b,&c); if(a==0&&b==0&&c==0) break; d[i]=f(a,b,c);i++;}n=i;for(i=0;i<n;i++)printf("%d\n",d[i]);return 0;}7.Bee#include <stdio.h>#include <stdlib.h>int main()int A[100],i=0,j,k,female=0,male=1,x; for(;;i++){scanf("%d",&A[i]);if(A[i]==-1)break;}for(j=0;j<i;j++){female=0,male=1;for(k=1;k<A[j];k++){x=female;female=male;male=x+male+1;}printf("%d %d\n",male,female+male+1);}return 0;}8.Checksum algorithm#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){int i,n,t,j;char s[100][100];for(i=0;;i++){gets(s[i]);if(s[i][0]=='#') break;}n=i;for(i=0;i<n;i++){t=0;for(j=0;j<strlen(s[i]);j++)if(s[i][j]==32) t=t;else t=t+(j+1)*(s[i][j]-64);printf("%d\n",t);}return 0;}9.Coin Test#include <stdio.h>#include <stdlib.h>int main(){char A[100000];int n,i=0,a=0,b=0,j; double x;while(1){scanf("%c",&A[i]);if(A[i]=='\n')break;i++;}for(j=0;j<i;j++){if(A[j]=='S'){printf("WA");goto OH;}if(A[j]=='U')a++;if(A[j]=='D')b++;}x=a*1.0/(a+b)*1.0;if(x-0.5>0.003||x-0.5<-0.003) printf("Fail");elseprintf("%d/%d",a,a+b);OH:return 0;}10.Dexter need help#include <stdio.h>int fun(int a){if(a==1) return 1;elsereturn fun(a/2)+1;}int main(){int a,b[100],i=0,j; while(1){scanf("%d",&a);if(a==0)break;b[i]=fun(a);i++;}for(j=0;j<i;j++){printf("%d\n",b[j]); }return 0;}11.Double#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){int a[100],b[100],i,j,n,t=0; for(i=0;;i++){scanf("%d",&a[i]);if(a[i]==0) break;}n=i;for(i=0;i<n;i++)b[i]=2*a[i];for(i=0;i<n;i++)for(j=0;j<n;j++)if(a[i]==b[j]) t++;printf("%d",t);return 0;}12.Easy problem#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){int N,i,n,j=0;scanf("%d",&N);for(i=2;i<N+1;i++){if((N+1)%i==0)j++; }printf("%d",j/2);return 0;}13.Favorite number#include <stdio.h>#include <string.h>#define MAXNUM 100000int prime_number = 0;int prime_list[MAXNUM]; bool is_prime[MAXNUM];int ans[MAXNUM + 2];int dp[MAXNUM + 2];void set_prime() {int i, j;memset(is_prime, 0, sizeof(is_prime));for (i = 2; i < MAXNUM; i++) {if (is_prime[i] == 0) {prime_list[prime_number++] = i;if (i >= MAXNUM / i) continue;for (j = i * i; j < MAXNUM; j+=i) { is_prime[j] = 1;}}}}int main() {int i, j, k,o=0,d[100];memset(dp, -1, sizeof(dp));set_prime();ans[0] = 0;dp[1] = 0;for (i = 1; i <= MAXNUM; i++) {ans[i] = ans[i - 1] + dp[i];if (dp[i + 1] == -1 || dp[i + 1] > dp[i] + 1) {dp[i + 1] = dp[i] + 1;}for (j = 0; j < prime_number; j++) {if (i > MAXNUM / prime_list[j]) break; k = i * prime_list[j];if (dp[k] == -1 || dp[k] > dp[i] + 1) { dp[k] = dp[i] + 1;}}}while (scanf("%d%d", &i, &j) == 2 && (i || j)) { d[o]=ans[j] - ans[i - 1];o++;}for(i=0;i<o;i++)printf("%d\n",d[i]);}14.Graveyard#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){int a[100],b[100],n,i,j;double s,p,l,t;for(i=0;;i++){scanf("%d%d",&a[i],&b[i]);if(a[i]==0&&b[i]==0) break;}n=i;for(i=0;i<n;i++){p=10000;if(b[i]%a[i]==0){printf("0.0000\n");continue;}; t=10000/((double)a[i]);for(j=1;j<a[i]+b[i];j++){l=10000/((double)(a[i]+b[i]));l=t-j*l;l=fabs(l);if(l<p) p=l;}s=(a[i]-1)*p;printf("%.4lf\n",s); }return 0;}15.Hailstone#include <stdio.h>#include <stdlib.h>#include <string.h>int f(int n){int s=1;while(1){if(n==1) return s;else if(n%2==0) n=n/2,s++; else n=3*n+1,s++;}}int main(){int n,m,i,j=0,t;scanf("%d%d",&m,&n);printf("%d %d",m,n);if(m>n) t=m,m=n,n=t;for(i=m;i<=n;i++)if(f(i)>j) j=f(i);printf(" %d",j);return 0;}16.Hanoi Ⅱ#include <stdio.h>#include <stdlib.h>#define M 70int start[M], targe[M];long long f(int *p, int k, int fina) {if(k==0) return 0;if(p[k]==fina) return f(p,k-1,fina);return f(p,k-1,6-fina-p[k])+(1LL<<(k-1));}int main (){long long ans;int n;while(scanf("%d",&n),n){int i;for(i=1;i<=n;i++) scanf("%d",&start[i]);for(i=1;i<=n;i++) scanf("%d",&targe[i]);int c=n;for(;c>=1&&start[c]==targe[c];c--);if(c==0){printf("0\n"); continue;}int other=6-start[c]-targe[c];ans=f(start,c-1,other)+f(targe,c-1,other)+1; printf("%lld\n",ans);}return 0;}17.Houseboat#include <stdio.h>#include <stdlib.h>#include <math.h>#define pi 3.1415926int f(float x,float y){int i;for(i=0;;i++)if(50*i>sqrt(x*x+y*y)*sqrt(x*x+y*y)*pi/2) break;return i;}int main(){int n,i,a[100];float x,y;scanf("%d",&n);for(i=0;i<n;i++){scanf("%f%f",&x,&y);a[i]=f(x,y);}for(i=0;i<n;i++)printf("%d %d\n",i+1,a[i]);return 0;}18.Music Composer19.Redistribute wealth#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){inta[1000],b[1000],n,i,j,s,sum,t,m,mid,c[100],k=0; while(1){scanf("%d",&n);if(n==0) break;{s=0;for(i=1;i<=n;i++){scanf("%d",&a[i]);s=s+a[i];}m=s/n;b[1]=a[1]-m;b[0]=0;for(i=2;i<n;++i)b[i]=b[i-1]+a[i]-m;for(i=0;i<n;i++)for(j=0;j<n-1-i;j++)if(b[j]>b[j+1])t=b[j],b[j]=b[j+1],b[j+1]=t;mid=b[n/2];sum=0;for(i=0;i<=n-1;++i) sum=sum+fabs(mid-b[i]); c[k]=sum;k++;}}for(i=0;i<k;i++) printf("%d\n",c[i]);return 0;}20.Road trip#include <stdio.h>#include <stdlib.h>#include <math.h>int f(int n){int a[100],b[100],i,s;for(i=0;i<n;i++)scanf("%d%d",&a[i],&b[i]); s=a[0]*b[0];for(i=1;i<n;i++)s=s+a[i]*(b[i]-b[i-1]);return s;}int main(){int n,c[100],i=0;while(1){scanf("%d",&n);if(n==-1) break;c[i]=f(n);i++;}n=i;for(i=0;i<n;i++)printf("%d\n",c[i]);return 0;}21.Scoring#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){int i,j,sum,min,c,count,n,a,b; char s1[50],s2[50];scanf("%d",&n);for(i=0;i<n;i++){count=sum=0;scanf("%s",s2);for(j=0;j<4;j++){scanf("%d%d",&a,&b);if(b!=0){sum+=(a-1)*20+b;count++;}}if(i==0){c=count,min=sum;strcpy(s1,s2);}else if(count>c||(count==c&&sum<min)) {min=sum;c=count;strcpy(s1,s2);}}printf("%s %d %d\n",s1,c,min); return 0;}22.Specialized Numbers#include <stdio.h>#include <stdlib.h>int main(){int i,n,sum10,sum12,sum16;for(i=2992;i<3000;i++){n=i;sum10=0;while(n){sum10+=n%10;n/=10;}n=i;sum12=0;while(n){sum12+=n%12;n/=12;}n=i;sum16=0;while(n){sum16+=n%16;n/=16;}if(sum10==sum12&&sum12==sum16) printf("%d\n",i);}return 0;}23.Sticks#include <stdio.h>#include <string.h>#include <stdlib.h>int len[64], n, minlen, get;bool b[64];int cmp(const void *a, const void *b){return *(int *)a < *(int *)b ? 1 : -1;}bool dfs(int nowlen, int nowget, int cnt){if(cnt >= n) return false;if(get == nowget) return true;int i;bool f = false;if(nowlen == 0) f = true;for(i = cnt; i < n; i++){if(!b[i]){if(len[i] + nowlen == minlen) {b[i] = true;if(dfs(0, nowget+1, nowget)) return true;b[i] = false;return false;}else if(len[i] + nowlen < minlen){b[i] = true;if(dfs(nowlen+len[i], nowget, i+1)) return true;b[i] = false;if(f) return false;while(i + 1 < n && len[i] == len[i+1]) i++;}}}return false;}int main(){int i, tollen;while(scanf("%d", &n), n){tollen = 0;int j = 0, p;for(i = 0; i < n; i++){scanf("%d", &p);if(p <= 50){len[j] = p;tollen += len[j];j++;}}n = j;if(n == 0){printf("0\n");continue;}qsort(len, n, sizeof(int), cmp); for(minlen = len[0]; ; minlen++) {if(tollen % minlen) continue; memset(b, 0, sizeof(b));get = tollen / minlen;if(dfs(0, 0, 0)){printf("%d\n", minlen);break;}}}return 0;}24.Sum of Consecutive#include <stdio.h>#include <stdlib.h>#include <string.h>int len[64],n,minlen,get;int b[64];int cmp(const void *a,const void *b){return *(int *)a<*(int *)b?1:-1;}int dfs(int nowlen,int nowget,int cnt){if(cnt>=n) return 0;if(get==nowget) return 1;int i,f=0;if(nowlen==0) f=1;for(i=cnt;i<n;i++){if(len[i]+nowlen==minlen){b[i]=1;if(dfs(0,nowget+1,nowget)) return 1;b[i]=0;return 0;}else if(len[i]+nowlen<minlen){b[i]=1;if(dfs(nowlen+len[i],nowget,i+1)) return 1;b[i]=0;if(f) return 0;while(i+1<n&&len[i]==len[i+1]) i++;}}return 0;}int main(){int i,tollen,q=0,c[100];while(scanf("%d",&n),n){tollen=0;int j=0,p;for(i=0;i<n;i++){scanf("%d",&p);if(p<=50){len[j]=p;tollen+=len[j];j++;}}n=j;if(n==0){printf("0\n");continue;}qsort(len,n,sizeof(int),cmp); for(minlen=len[0];;minlen++){if(tollen%minlen) continue; memset(b,0,sizeof(b));get=tollen/minlen;if(dfs(0,0,0)){c[q]=minlen;q++;break;}}}for(i=0;i<q;i++)printf("%d\n",c[i]);return 0;}25.Symmetric Sort#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){double A[100];int i=0,j=0,k=0,l=0,sum=0; while(1){scanf("%lf",&A[i]);if(A[i]==0)break;i++;}for(j=0;j<i;j++){if(A[j]==2)printf("1\n");else{int B[10000],m=1,number=0;double n;B[0]=2;for(k=3;k<=A[j];k+=2){n=(double)k;for(l=2;l<=sqrt(n);l++){if(k%l==0)goto ai;}B[m]=k;m++;ai:;}for(k=0;k<m;k++){sum=0;for(l=k;l<m;l++){sum+=B[l];if(sum==A[j]){number++;break;}}}printf("%d\n",number);}}return 0;}26.The Clock#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){char s[100][100],a[100];int i,j,n;scanf("%d",&n);for(i=0;i<n;i++) scanf("%s",s[i]);for(i=0;i<n-1;i++)for(j=0;j<n-1-i;j++)if(strlen(s[i])>strlen(s[i+1]))strcpy(a,s[i]),strcpy(s[i],s[i+1]),strcpy(s[i+1],a) ;if(n%2==0){for(i=0;i<n-1;i=i+2) printf("%s ",s[i]);printf("%s ",s[n-1]);for(i=i-3;i>0;i=i-2) printf("%s ",s[i]);}else{for(i=0;i<n-1;i=i+2) printf("%s ",s[i]); printf("%s ",s[n-1]);for(i=i-1;i>0;i=i-2) printf("%s ",s[i]); }return 0;}27.The Ratio of gainers to losers#include<stdio.h>int main(){char s[5];int i,sum=0;gets(s);for(i=0;s[i]!='\0';i++){switch(s[i]){case'I': sum+=1;break;case'V': sum=5-sum;break; case'X':sum=10-sum;break; }}printf("%d\n",sum);return 0;}28.VOL大学乒乓球比赛#include <stdio.h>#include <stdlib.h>int main(){printf("A=Z\nB=X\nC=Y\n"); return 0;}29.毕业设计论文打印#include <stdio.h>#include <stdlib.h>int main(){int a[100],j=1,i,n,m;scanf("%d%d",&n,&m);for(i=0;i<n;i++)scanf("%d",&a[i]);for(i=0;i<n;i++)if(a[i]>a[m]) j++;printf("%d",j++);return 0;}30.边沿与内芯的差#include <stdio.h>#include <stdlib.h>int main(){int A[100][100],i,j,m,n,s=0,t=0; scanf("%d%d",&n,&m);for(i=1;i<=n;i++){for(j=1;j<=m;j++){scanf("%d",&A[i][j]);。

《小学英语B》大作业A

《小学英语B》大作业A

《小学英语B》大作业A 小学英语B 大作业A介绍本文档是小学英语B课程的大作业A。

本次作业要求进行一系列语言练,包括阅读、写作、听力和口语等方面,旨在提高学生的英语水平。

本文档将包含以下几个部分:2. 作文(Essay Writing)3. 听力练(Listening Exercises)4. 口语练(Speaking Exercises)阅读理解请在下面空白处提供一篇阅读材料,并设置几个与该文章相关的问题,要求学生根据文章内容回答问题。

文章应包含关键信息,并能帮助学生理解文章的主旨和细节。

请在此处填写阅读材料,并提供相关问题。

作文请在下面空白处提供一个作文题目,并提供相关指引,要求学生根据题目进行作文练。

作文题目应引导学生进行合理的写作,鼓励他们表达自己的观点,同时也可以涉及一些英语知识,以提高学生的写作水平。

请在此处填写作文题目,并提供相关指引。

听力练请在下面空白处提供一段听力材料,并设置一个或多个问题,要求学生根据所听到的内容回答问题。

听力材料应包含不同类型的语言,如对话、独白等,并注意适当设置难度,以帮助学生巩固所学的听力技能。

请在此处填写听力材料,并提供相关问题。

口语练请在下面空白处提供一个口语练题目,并提供相关指引,要求学生用英语进行口语练。

口语题目可以与日常生活、个人喜好、家庭等主题相关,并鼓励学生进行表达和互动。

请在此处填写口语练题目,并提供相关指引。

总结通过以上的练,学生将能够从不同的角度提高自己的英语能力。

阅读理解、作文、听力练和口语练将有助于学生全面提高听说读写的能力,加深对英语的理解和应用。

希望学生能够积极参与并取得进步,达到预期的研究目标。

以上是小学英语B课程的大作业A的内容。

祝同学们完成作业顺利,提高英语水平!。

nit大作业3

nit大作业3
为 人 父 母 天 下 至 善
感 受 父 爱 的 无 私 与 毫 无 保 留
我 怀 着 细 腻 的 心 感 受 这 一 切
在 我 的 眼 里 您 是 无 所 不 能 的
是 您 我 的 父 亲
一 个 幸 福 为 我 们 构 建
一 片 充 满 爱 的 天
是 谁 用 瘦 弱 的 身 躯 为 我 们 撑 起
, !
,
,
?
?
…..
!
我长大了,我的胆子也大了 好多事自己做主了不和他商量 渐渐地我学会了顶嘴 不善于表达的父亲气得说不出话来 当我抬起头看向他时 却意外地看见 他削瘦的脸庞 是那样的无奈与伤心 我沉默了 低下了头 眼泪不听话的流了下来 ……
当我第一次 离家去远地上学的时候 母亲 一个劲儿地牵着我的手 在我耳边唠叨 父亲 则是严厉的说好好学习 然而转头地那一刹那 他的眼睛湿润了
时光荏苒 如白驹过隙 有一种感情并不随岁月流逝而减弱 这种感情便是感恩--感谢父亲 相反 一日复一日在心底某个深处酝酿 酝酿渐渐扩大 渐渐拉长
父爱是山我是树 父亲是我生命的源泉 父亲是我精神的支柱
在错过的感恩节里 祝愿父亲 献给父亲 愿他心想事成 笑口常开

高三英语大休作业

高三英语大休作业

高三英语大休作业第一部分:选择题1. -----Susan, will you please go and empty that drawer? ------ _______________?A. What forB. what is itC. How is itD. How come2. The driver began to speed to ________for the hour he‟d lost in the traffic jam.A.keep upB.take upC. catch upD. make up3. My question _______ I shall get in touch with him has not been answered.A. thatB. howC. whereD. what4. We offten do exercises, listen to English tape,and watch English films to ____our vocabulary.A. enlargeB. conveyC. postponeD. improve5.______a car reached the end of its life, it is taken apart and any part that can be reused is sold off.A. AsB. WithC. OnceD. While6._______homework did we have to do that we had no time to make a rest.A. So muchB. Too muchC. Too littleD. So little7. Suddenly a tall man, riding a golden carriage, _____the girl and took her away, ____into the woods. A. seizing; disappeared B. seizing;disappearingC. seized; disappearedD. seized,disappearing8._______ to give up smoking, he threw away his _______ cigarettes.A. Determined; remainedB. Determining; remainingC. Determined; remainingD. Determining; remained9. ____ the pair of brand new sneakers, Tom jumped with joy. Which of the following is wrong?A. SeeingB. At the sight ofC. On seeingD. Caught sight of10. The goal is to make higher education available to everyone who is willing and capable ______his financial situation .A. with respect toB. according toC. regardless ofD. in terms of11. Look at the trouble I ’ m in! If only I _____ your advice.A. followedB. would followC. had followedD. should follow12. Our new teacher demanded that all the questions ________ carefully.A. considerB. shopuld considerC. be consideredD. would be considered13. —Do you think it‟s going to rain over the weekend? —_____.A. I don‟t believeB. I don‟t believe itC. I believe not soD. I believe not14. William Beebe, one of the first men ________ the depth of the sea in a bathysphere, gotinterested in oceanography because of one book.A. exploringB. having exploringC. to be exploringD. to explore15. — How did you find your visit to the Summer Palace yesterday?— _______. I got separated from my 80-year-old grandparents.A. It couldn‟t be betterB. It couldn‟t be worseC. Good luck to meD. I have no idea第二部分完型填空There once was a little boy who wanted to meet God . He knew it was a long trip to where God lived , so he 16 his suitcase with Twinkies and a six-pack of root beer and he started his 17 . When he had gone about three blocks , he met an old woman . She was 18 in the park just staring at some pigeons (鸽子).The boy sat down next to her and opened his 19 . He was about to take drink from his root beer when he noticed that the old lady looked 20 , so he offered her a Twinkie . She 21 accepted it and smiled at him . Her 22 was so pretty that he boy wanted to see it 23 , so he offered her a root beer . Once again she smiled at him . The boy was 24 ! They sat there all 25 eating and smiling , but they never said a word . As it grew dark , the boy realized how 26 he was and he got up to leave , but before he had gone more than a few steps , he 27 around , ran back to the old woman and gave her a hug . She gave him her 28 smile ever . When the boy opened the door to his own house a short time later , his mother was 29 by the look of joy on hisface . She asked him , ―What did you do today that made you so happy?‖He replied , ―I had 30 with God.‖But before his mother could respond , he added , ―You know 31 ? She’s got the most beautiful smile I’ve ever seen !‖Meanwhile , the old woman , also radiant (容光焕发的) with 32 , returned to her home . Her son was shocked by the look of 33 on her face and he asked , ―Mother , what did you do today that made you so happy?‖She replied , ―I 34 Twinkies in the park with God.‖But before her son responded , she added , ―You know , he’s much 35 than I expected.16.A.packed B.carried C.delivered D.arranged17.A.game B.journey C.car D.work 18.A.standing B.playing C.sitting D.waiting 19.A.suitcase B.bag C.beer D.map20.A.worried B.pale C.hungry D.poor21.A.willingly B.joyfully C.respectfully D.gratefully22.A.face B.skirt C.smile D.ring23.A.again B.often C.further D.soon24.A.satisfied B.delighted C.moved D.shocked 25.A.morning B.day C.night D.afternoon 26.A.happy B.tired C.bored D.thirsty27.A.turned B.looked C.walked D.jumped 28.A.commonest B.biggest C.weakest D.trickiest 29.A.surprised B.terrified C.impressed D.attracted30.A.a talk B.a walk C.fun D.lunch31.A.why B.who C.what D.where32.A.joy B.fear C.anger D.content33.A.victory B.regret C.peace D.surprise34.A.sold B.baked C.drank D.ate35.A.nobler B.taller C.wiser D.younger第三部分阅读 AWhile homework in kindergarten requires coloring and learning the ABC's, the high school homework load has become increasingly difficult and time-consuming."I think homework takes a long time to do," Ross Perry, Grade 10, said. "It helps you learn sometimes, but not really that much. I stay up until midnight doing homework and sometimes there is no point in even starting to do it."Hallie Rojeski, a junior high teacher, tries not to give her classes homework, hoping not to discourage students. "I try to give minimal homework because students should be playing and taking exercise more than working inside all day. Students usually don't have good study habits when they come into the 7th and 8th grade. I offer a necessary after-school assignment so they will learn them."Teenagers are encouraged to get 8-9 hours of sleep and participate in sports or physical activity outside school. With 2-3 hours of homework it can be difficult to do everything.Homework takes different amounts of time based on what courses students take. "I give my Spanish students little bits of homework," Melody Downie, a Spanish teacher, said. "That is about what we learned in class, because for a foreign language you need to do work that reinforces (巩固) what we learn. I hardly give my history class homework.""When students do their homework they should be in a quiet area," Hallie Rojeski said. "They also need to do work for 30 minutes and then take a 10-minute break because it is hard for students to keep focused for a long time."The University of Michigan found in a recent study that the amount of homework had increased by 51% since 1981. Harris Cooper at Duke University says that students who do small amounts of homework do better on their tests, but when they exceed 60-90 minutes of homework,the test scores fall."Homework is given to motivate students to learn," Principal Gary Schultz said. "Repeating what they learn in school helps them to remember and learn things for tests. Some kids do not needhomework to learn but most do. I believe practice makes perfect."36. According to Ross Perry, doing homework__________.A. is really a waste of timeB. is always a good way of learningC. is usually a great help to studentsD. is sometimes unnecessary for students37. The reason why Hallie Rojeski gives her students minimal homework is that she thinks ______.A. students should learn good studying and living habitsB. too much homework will make students' test scores fallC. little bits of homework will reinforce what students learn in classD. it is too hard for students to focus on school assignment for a long time38. The underlined word "exceed" can be replaced by ________?A. doB. finishC. are beyondD. are against39. What is the main idea of the passage?A. Proper amounts of homework are necessary.B. Students do not like doing too much homework.C. Students do not need to do after-school homework.D. More homework should be given to motivate students.BThere are three branches of medicine. One is called “doctor medicine”or “scientific medicine”。

NIT大作业PPT保证满分 (2)

NIT大作业PPT保证满分 (2)

咖啡成分表成分 水分 蛋白 脂 Nhomakorabea 糖质 纤维 钙 质 磷 铁 纳 钾 维生 烟碱 酸 素 B2
单位 克

克 0.1
克 0
克 0
毫克 毫克 毫克 毫克 毫克 毫克 毫克 3 4 0 2 55 0.01 0.3
咖啡 99.5 0.2 液 烘培 2.2 豆
12.6 16.4 46.7 9
120
170
4.2
3
200 0
0.12 3.5
咖 啡
功 效
• 提神醒脑 咖啡因刺激中枢神经,醒脑提高工作效 率; • 开胃助食 咖啡因刺激胃肠分泌胃酸,防止胃下垂。 • 利尿除湿 咖啡因可提高排尿量,促进肾脏机能。 • 活血化瘀 咖啡所含的亚油酸,能溶血及阻止血栓 形成,增强血管收缩,降低中风机率。 • 定肺喘 咖啡因会抑制副交感神经,减少气喘病的 发作。 • 除异味 咖啡因内含单宁,对味道具有极强的吸附 能力。如果你家刚装修,在室内煮上一壶咖啡或用 煮过的咖啡豆置于室内,异味会很快去除。 • 咖啡可减肥抗衰老 浅度烘焙的咖啡含咖啡因较高 有利减肥。黑咖啡有抗氧化作用,有助于抗癌、抗 衰老。


以下六种人不宜喝咖啡
• 患高血压、冠心病、动脉硬化等疾病——长期或大量饮用咖啡, 可引起心血管疾病。 • 老年妇女——咖啡会减少钙质、引起骨质疏松。妇女绝经后,每 天需要加十倍的钙量。 • 胃病患者——喝咖啡过量可引起胃病恶化。 • 孕妇——饮过量咖啡,可导致胎儿畸形或流产。 • 维生素B1缺乏者——维生素B1可保持神经系统的平衡和稳定, 而咖啡对其有破坏作用。 • 癌症患者———饮用过量的咖啡对正常人有致癌的危险。
咖啡文化
制作人:
目录
• • • • • • 咖啡起源 咖啡成分 咖啡功效 咖啡烘焙 咖啡研磨 品味咖啡

江苏开放大学《大学英语B(2)》综合性大作业

江苏开放大学《大学英语B(2)》综合性大作业

精选《大学英语B (2)》综合性大作业》综合性大作业任选一个主题作为论文题目,围绕主题写一篇800字论文提交(中英文均可)。

1.《从节日看中西文化差异》《从节日看中西文化差异》2.《从中英文动物比喻的不同看中西文化差异》《从中英文动物比喻的不同看中西文化差异》3.《论中英文中颜色隐喻的差异及其文化根源》《论中英文中颜色隐喻的差异及其文化根源》4.《论跨文化交际中的中西餐桌礼仪》《论跨文化交际中的中西餐桌礼仪》5.《从跨文化交际的角度解读中西方礼貌准则和策略》《从跨文化交际的角度解读中西方礼貌准则和策略》6.《中西方茶文化差异》《中西方茶文化差异》作业要求:作业要求:1. 主题明确,结构清晰,内容饱满,充分阐述中西文化差异;主题明确,结构清晰,内容饱满,充分阐述中西文化差异;2. 请勿抄袭!!!!江苏开放大学综合性大作业学 号 2017130000012姓 名苏文龙课程代码020004课程名称大学英语B(2) 评阅教师分 数评 语标题标题 《中西方茶文化差异》《中西方茶文化差异》正文正文 Differences between Chinese and western tea culturesTea originated in China, and the earliest wri en records date back to the 2nd century BC and then spread to the west. However, there are different customs for drinking tea in different cultural backgrounds. Here's a look at some of the differences between Chinese and western tea cultures that have been carefully sorted out for you.(1) different ways of drinking.There are two types of Chinese tea drinking, one is "clear drink", without adding any harmful ingredients to the original flavor of the tea, and only drink with water bubbles. The other is "mixed drink", which means adding salt, sugar and milk to tea according to personal taste. Currently, this method is mainly concentrated in ethnic minority areas.Britons add milk and sugar to their tea to remove theophylline and turn bi er tea into sweet drinks that suit their tastes. In addi on, the English have reformed the tea itself. Packaged, instant tea scraps replace pieces of tea, and Chinese people tend to keep the whole leaf in boiling water.Western tea can be added milk, sugar, lemon slices and honey, etc., but it is important to note that tea should be poured first,followed by other condiments, in an order that cannot be reversed. A er adding the seasonings, s r with the spoon to avoid making too much noise when s rring the tea. Put the spoon on the back of the bowl a er s rring.(2) the use of tea sets is differentChina's tea wares are mostly ceramic products, and there are also purple sandboxes for pu 'er tea. The purple sand teapot is breathable, and the pu-erh tea is brewed. The watertemperature must be very high.And westerners have a special liking for silver, so most westerntea wares are made of silver.The use of tea filters is differentIn China, the chip off a fine cup of tea, such as aged pu-erh tea,need to use iron pot as tools to boil water, then water into theteapot and tea, pour out the first me a er water, then addboiled water into the teapot in let stand un l the bubble tea,just take a small sample.As is known to all, Chinese people are quite par cular aboutthe tea ceremony. In fact, westerners also have a set ofe que e when drinking tea. For example, western teas use atea strainer, which is placed on a teacup and poured into thecup un l it is three-quarters full, so it doesn't spill over thesaucer and make a mess.(4) differences in tea drinking e que e.In the eyes of most Chinese, tea can be drunk at any me. The Bri sh are much more tea - loving and tea - respec ng. A typical Bri sh family drinks tea at least five mes a day. When you wake up in the morning, the host will lean on the bed and drink a cup of morning tea to refresh your mind. If there are guests, morning tea is the best way to greet them. Around 11 o 'clock in the morning, black tea with tea; Drink milk tea at lunch; Around five o 'clock in the a ernoon is the famous a ernoon tea. Drink farewell tea before going to bed at night. In addi on, there are many famous tea banquet, garden tea party and so on.(5) differences in the spirit of tea ceremony.Harmony, tranquility, grace and truth are the four noble truths of Chinese tea ceremony. Harmony is the core of Chinese teaculture philosophy and the soul of tea ceremony. "Quiet" is the only way to prac ce Chinese tea ceremony. "Just" is thespiritual feeling in the prac ce of Chinese tea ceremonyprac ce. "True" is the ul mate pursuit of Chinese teaceremony. Chinese people o en drink tea as a spiritualinspira on and emo onal sustenance. Unlike the Chinese teaceremony, the Bri sh taste tea more lively and social,emphasizing an elegant style.Oriental tea wares are mostly ceramic products, while westerntea wares are mostly silver.Oriental people pay a en on to tea ceremony, westerners alsohave a set of tea ceremony, such as to use a tea filter, to pourtea into the cup to three-quarters full.Chinese tea is the purest flavor of the tea without adding anyflavoring to it. Western tea is added milk, sugar, lemon slicesand honey, the tea should be poured before adding othercondiments, the order cannot be reversed.Tea is not required to be served in the east, but it is o enaccompanied by tea in the west. The most common ones areSco sh cream biscuits, Victorian muffins and muffins.。

牡丹江2024年10版小学6年级第12次英语第六单元暑期作业

牡丹江2024年10版小学6年级第12次英语第六单元暑期作业

牡丹江2024年10版小学6年级英语第六单元暑期作业考试时间:100分钟(总分:140)考试人:_________题号一二三总分得分评级介绍:本试卷涵盖第六单元的核心内容,难度适中,重点在于词汇应用和语法理解,旨在帮助学生巩固知识并提升综合英语能力。

一、选择题(共计20题,共40分)1、What do we call a plant that grows well in saline conditions?我们称在盐碱条件下生长良好的植物为?A, HalophyteB, Aquatic plantC, Desert plantD, Tropical plant2、What is the English translation of "交通灯"?A, Street LightB, Traffic LightC, SignalD, Stop Sign3、What is the English translation of "青蛙"?A, ToadB, FrogC, SalamanderD, Lizard4、What is the English word for "努力"?A, Hard workB, SuccessC, StudyD, Practice5、He has a lot of toys. 他有很多玩具。

A, Books B, Toys C, Clothes6、Which plant is often grown for its beautiful flowers?中文解释:哪种植物常因其美丽的花朵而种植?A, RoseB, OakC, Pine7、What is the main ingredient in chocolate?A, CocoaB, SugarC, MilkD, Butter8、What does "植物产业转型" mean in English?A, Plant industry transformationB, Agricultural transformationC, Environmental transformationD, Ecological transformation9、What is the color of an orange?A, GreenB, YellowC, RedD, Orange10、What is half of 8?A, 4B, 5C, 6D, 311、What is the name of the famous clock tower in London? A, Big BenB, Eiffel TowerC, Leaning TowerD, Colosseum12、What do we call the process of a plant growing from a seed?我们称植物从种子生长的过程为?A, GerminationB, PollinationC, FertilizationD, Photosynthesis13、What do you call a person who repairs cars?中文解释:修理汽车的人叫什么?A, MechanicC, Artist14、What do you call a place where you go to get a haircut?中文解释:剪发的地方叫什么?A, SalonB, SpaC, Store15、This person is a coach. 这个人是一名教练。

南昌“PEP”2024年10版小学6年级上册第14次英语第4单元暑期作业(含答案)

南昌“PEP”2024年10版小学6年级上册第14次英语第4单元暑期作业(含答案)

南昌“PEP”2024年10版小学6年级上册英语第4单元暑期作业(含答案)考试时间:100分钟(总分:120)A卷考试人:_________题号一二三四五总分得分一、综合题(共计100题)1、填空题:A ____(carbon accounting) tracks greenhouse gas emissions.2、Which gas do we breathe in?a. Carbon dioxideb. Oxygenc. Hydrogend. Nitrogen答案:b3、听力题:The ______ is a part of the brain that processes information.4、填空题:The __________ is a major city known for its cultural significance. (伦敦)5、填空题:The ______ (开花) season is often anticipated by gardeners.6、Which animal is known for its trunk?A. LionB. ElephantC. DogD. Cat答案:B7、听力题:My dad is very ________.8、What do you call a person who studies plants?A. BotanistB. ZoologistC. GeologistD. Chemist9、What do we call the act of facilitating learning?A. TeachingB. EducatingC. MentoringD. All of the Above答案:D10、What is the hardest natural substance on Earth?A. GoldB. DiamondC. IronD. Silver答案: B11、What do you call a large, slow-moving animal with a shell?A. TortoiseB. TurtleC. SnailD. Armadillo答案:A12、What is the opposite of fat?A. ThinB. SlimC. LeanD. All of the above答案:D13、 Schism divided the Christian Church into _____. 填空题:The Grea14、填空题:I can play creatively with my ________ (玩具名称).15、填空题:When it rains, I like to stay __________ with a good book. (室内)16、填空题:The ________ is a great climbing plant.17、听力题:The city of Hanoi is the capital of _______.She is a good ________.19、填空题:My favorite animal is a ______ (猫) that purrs when happy.20、填空题:The country famous for its mountains is ________ (瑞士).21、听力题:Astronauts train for missions in _______ environments.22、填空题:The _______ (鸭子) is often found in parks.23、填空题:I found a _______ (小蟋蟀) singing in the grass.24、听力题:I have a ______ of stickers. (book)25、填空题:She is a musician, ______ (她是一位音乐家), performing at concerts.26、听力题:Carbon dioxide is produced during _______ respiration.27、What do you call a period of ten years?A. CenturyB. DecadeC. MillenniumD. Era答案:B28、听力题:My cousin is a ______. He enjoys sports.29、填空题:_____ (fossil) records show ancient plants.30、填空题:Photosynthesis is a process that plants use to convert _______ into energy. (光能)31、听力题:A ______ is a measurement of the amount of matter in an object.My friend is a _____ (艺术家) showcasing her portfolio.33、听力题:The _______ Pole is located at the top of the Earth.34、填空题:My mom loves to travel and share her __________ (经历).35、选择题:What do we drink in the morning?A. MilkB. WaterC. JuiceD. All of the above36、填空题:The capybara is the largest ________________ (啮齿动物).37、填空题:My birthday is in ________ (九月).38、听力题:A mixture of solids is called a ______ blend.39、 have bushy ______ (尾巴). 填空题:Squirrel40、填空题:A ____(community newsletter) informs residents of events and resources.41、听力题:The Earth's layers are categorized based on their ______.42、Which animal is known for its ability to swim?A. SparrowB. ElephantC. DolphinD. Cheetah43、How many legs does a typical insect have?A. SixB. EightC. FourD. Ten答案: A44、What is the main language spoken in Spain?A. FrenchB. SpanishC. PortugueseD. Italian答案:B45、How many months are there in a year?A. TenB. TwelveC. ElevenD. Nine答案:B46、填空题:A ______ (植物的研究) can lead to new discoveries.47、How many fingers do we have on one hand?A. 4B. 5C. 6D. 748、What is the name of the famous clock tower in London?A. Big BenB. Tower of LondonC. Buckingham PalaceD. The Shard答案: A. Big Ben49、填空题:I built a spaceship with my toy ____. (玩具名称)50、e of Gettysburg was fought during the _____ War. 填空题:The Batt51、填空题:The ________ grows in many colors and sizes.52、What do we call the process of changing from a solid to a gas?A. SublimationB. EvaporationC. CondensationD. Melting答案: A53、What is the opposite of "hot"?A. ColdB. WarmC. CoolD. Spicy54、听力题:I want to _____ (join/start) a club.55、What is the main ingredient in guacamole?A. TomatoB. AvocadoC. PepperD. Onion答案:B56、填空题:This ________ (玩具) is made for outdoor fun.57、听力填空题:I enjoy drawing pictures of __________ because they are __________.58、听力题:The chemical symbol for lithium is ______.59、填空题:The ______ of a rose bush can be very thorny. (玫瑰灌木的茎可能非常多刺。

NIT大作业

NIT大作业

宙斯神像
表面铺上灰泥的石灰岩,殿顶 则用大理石兴建而成,神殿共 由34条高约17公尺的科林斯式 34条高约17公尺的科林斯式 石柱支撑着,面积达41.1公尺 石柱支撑着,面积达41.1公尺 x107.75公尺。庙前庙后的石 107.75公尺。庙前庙后的石 像都是用派洛斯(Paros)岛的 像都是用派洛斯(Paros)岛的 大理石雕成。庙内西边人字形 檐饰上的很多雕像。至于神殿 主角“宙斯” 主角“宙斯”,采用了所谓 ‘克里斯里凡亭技术,是在木 质支架外加象牙雕成的肌肉和 金制的衣饰。宝座也是木底包 金,嵌着乌木、宝石和玻璃, 历时八年之久
世界八大奇迹
巴比伦空中花园 亚历山大灯塔 罗德港巨人雕像 宙斯神像 阿耳忒弥斯神庙 摩索拉斯陵墓 埃及金字塔 秦始皇兵马俑
古巴比伦空中花园
建立时间:公元前604年至 建立时间:公元前604年至 562年间 562年间 地点:伊拉克首都巴 格达以南56英里处 格达以南56英里处 由古巴比伦国王尼布 甲尼撒二世为他最爱的王 后而建造的。王后是波斯 人,尼布甲尼撒二世为她 建造了这座奇幻的高大建 筑以便使她可以经常望乡。 空中花园上栽满了许多奇 花异草,并有完整的供水 系统。当时看到它的古希 腊人称之为世界奇迹 。
摩索拉斯陵墓
拉斯陵墓位于哈利卡纳素斯,在土耳其的西南方,底部建筑为长方形, 拉斯陵墓位于哈利卡纳素斯,在土耳其的西南方,底部建筑为长方形, 面积是40平方米(120乘30米(100,高45米(140,其中墩座墙高20米, 40平方米(120 20米 面积是40平方米(120乘30米(100, 45米(140,其中墩座墙高20 柱高12米,金字塔高7米,最顶部的马车雕像高6米建筑物被墩座墙围 12米 金字塔高7 柱高12 最顶部的马车雕像高6 住,旁边以石像作装饰,顶部的雕像是四匹马拉著一架古代双辆战车。 旁边以石像作装饰,顶部的雕像是四匹马拉著一架古代双辆战车。 此陵墓著名之处除了它的建筑外,还有那些雕塑。摩索拉斯陵墓 此陵墓著名之处除了它的建筑外,还有那些雕塑。 的雕塑由雕刻家Bryaxis, Leochares, Scopas,和 Timotheus制造, 的雕塑由雕刻家Bryaxis, Leochares, Scopas, Timotheus制造, Bryaxis 制造 每人负责陵墓的其中一边。Fra bibliotek埃及金字塔

西工大noj答案

西工大noj答案

西工大noj答案【篇一:西工大poj100题(全新)】圆及圆球等的相关计算#includestdio.hint main(){int a,b,sum;scanf(%d %d,a,b);sum=a+b;printf(%d,sum); }#includestdio.hint main(){float r,h,l,s,sq,vq,vz,pi=3.141592653; scanf(%f %f,r,h);l=2*pi*r;s=pi*r*r;【篇二:西北工业大学 c语言 poj题目及答案_第一季】>毋庸置疑,学习程序设计就是奔着“程序员梦”去的。

编程本质是运用计算机科学的基本思想求解问题、设计系统以及理解人类的思维行为和普适技能,核心是“实现”。

因此,诸如“中国梦”、“程序员梦”是编写出来,即“coding now,programming future”。

在这个学期,你将尝试用“编写”的方式去“实现”,体验与过去完全不同的“实现”。

在这个过程中,有太多的“if”不确定、有太多的“for”死循环、有太多的“bug”愁断魂,“实现”并不容易。

有人的地方就有江湖,有江湖的地方就有武林大会。

poj(problems online judge)是学编程的江湖。

在这里,做习题叫做“刷题”,习题做错叫做“被挖”(wa=wrong answer,结果错误),习题通过叫做“a了”(ac=accepted,结果通过),简单习题称为“水题”,“刷一圈”指连续刷题12小时以上。

总会有人用一、两周的时间完成100题的oj,这不叫“刷题”,叫“梦游”。

2012学年,一个大三的哥哥将100题的源码整理出版了(长安校区超市旁的复印店),大一亲们蜂拥而至,一时间“a4纸贵”,交叉着下载、复制、粘贴、上传的能力训练,唯独不见“编写”。

待到期末上机考试,亲们那双瞠目的眼睛与希望工程那双大眼睛神似,最终贡献了两位数的gdp。

有道是出来混的,迟早要还,哥哥今昔完美毕业,亲们继续“梦游”。

南昌2024年10版小学六年级上册第14次英语第五单元暑期作业

南昌2024年10版小学六年级上册第14次英语第五单元暑期作业

南昌2024年10版小学六年级上册英语第五单元暑期作业考试时间:100分钟(总分:140)B卷考试人:_________题号一二三总分得分一、选择题(共计20题,共40分)1、选择题:What is the result of 5 + 5?A. 8B. 9C. 10D. 112、What do we call a young deer?A. FawnB. CalfC. KidD. Pup3、What do you call a baby cow?A. CalfB. FoalC. KidD. Lamb4、Which of these is a type of tree?A. PineB. GrassC. FlowerD. Bush5、选择题:What is the name of the famous character who is a genie in a lamp?A. AladdinB. JasmineC. GenieD. Jafar6、What do we call the time when the sun sets?A. DawnB. DuskC. NoonD. Midnight7、选择题:What is the name of the famous river that runs through Egypt?A. AmazonB. NileC. MississippiD. Yangtze8、选择题:What is the main language spoken in the USA?A. SpanishB. FrenchC. EnglishD. Chinese9、What type of animal is a frog?A. MammalB. BirdC. ReptileD. Amphibian10、What is the capital of Finland?A. HelsinkiB. OsloC. StockholmD. Copenhagen11、What do astronomers use to observe distant objects in space?A. MicroscopeB. TelescopeC. SpectroscopeD. Barometer12、How many players are on a soccer team?A. 7B. 9C. 11D. 1313、选择题:What do we call the time of year when it gets warmer?B. SpringC. AutumnD. Summer14、选择题:What do you call the area of land that is covered by water?A. LakeB. RiverC. OceanD. Wetland15、Which sport involves a ball and a net?A. SwimmingB. TennisC. RunningD. Cycling16、What is the primary ingredient in a traditional risotto?A. RiceB. PastaC. GrainD. Quinoa17、How many days are in a week?A. 5B. 6C. 7D. 818、What is the capital of Italy?A. VeniceB. RomeC. MilanD. Florence19、What do we call the process of converting a solid directly into a gas?A. MeltingB. EvaporationC. SublimationD. Freezing20、What do we call the place where we go to see books?A. LibraryB. StoreD. Gym二、听力题(共计20题,共40分)1、听力题:My sister is a ______. She loves to help others.2、听力题:A ______ is a type of animal that has fur.3、听力题:The train leaves at _______ (five) o'clock.4、听力题:The teacher is _____ a story. (reading)5、听力题:My sister enjoys taking ____ (art) classes.6、听力题:A satellite orbits around the _____.7、听力题:I want to _____ (become) a scientist.8、听力题:A _______ is a reaction that produces fire.9、听力题:I love ________ with my family.10、听力题:Black holes are regions in space with a very strong ______.11、听力题:The __________ can reveal the history of tectonic movements.12、听力题:The ______ teaches us about personal finance.13、听力题:Sedimentary rocks are made from particles that have ______ together over time.The main function of chlorophyll in plants is to absorb _______ light.15、听力题:The chemical formula for ammonium sulfate is _______.16、听力题:His favorite food is ________.17、听力填空题:My favorite season is __________ because __________. I love doing activities like__________ during this time. It makes me feel __________.18、听力题:The flowers smell _____ (sweet/bad).19、听力题:The Earth’s atmosphere protects us from harmful ______ (radiation).20、听力题:The process of ______ involves the slow wearing away of rocks.三、填空题(共计20题,共10分)1、填空题:The __________ (历史的情感) connects us to the past.2、填空题:The green _____ has sharp thorns.3、填空题:Later, we sit under a tree to rest. We talk about our favorite ______ (5) and share funny stories. I love spending time with my friends because they always make me laugh.4、填空题:The alligator lives in the _________. (沼泽)5、填空题:I feel happy when I am with my ________.6、n Tea Party was a protest against the ________ (茶税). 填空题:The BritThe __________ (人类的进步) has been driven by curiosity and exploration.8、填空题:I help my sister with her __________. (画画)9、填空题:Another activity I would love to do is ______. I have always wanted to try it because it looks so thrilling. I hope to see many colorful ______ while exploring the underwater world.10、填空题:The fish swims around the ______.11、填空题:The _______ (Iron Curtain) symbolized the division between East and West during the Cold War.12、填空题:The __________ was a significant movement for women's rights. (女性选举权运动)13、填空题:My friend has a pet _________ (鹦鹉).14、填空题:The _____ (小鸟) builds its nest with twigs and leaves.15、填空题:I enjoy ______ (参加) sports competitions.16、填空题:The __________ (历史的批判性思维) enhances understanding.17、填空题:The capital city of Djibouti is ________ (吉布提的首都城市是________).18、填空题:Gardening can be a therapeutic activity that promotes ______ and relaxation.(园艺可以是一种促进身心放松的疗愈活动。

求实英语作业全集及答案

求实英语作业全集及答案

初级作业第一章状态句型1、我姐姐在那儿吗?她和谁在一起呢?2、我妈妈没在家,她和街坊出去了。

3、那本书怎么样?它在你的手里吗?4、这是给我的,那些是给谁的?5、Sam Sterm根本就没在这儿,他每天在二楼办公。

6、他是干什么的?他不是经理吗?7、你的小狗在哪?它在什么里边?8、这间办公室是谁的?里面有人吗?哪间办公室是你的?9、我的电话出了毛病,手机在哪儿?10、电视开着呢,把它关上吧!11、我的备份没在你的电脑里吗?12、这是干什么用的?13、我的手机昨天就在这儿放着呢!14、这个书包是谁的?那是谁的书包?我的在这儿!她的呢?15、这本字典不像我的,但那本像。

第二章行为句型1、他整天没地方去也没事儿干。

2、她天天在哪儿吃午饭?3、他怎么不常和他们一块儿来?4、王芳有姐姐吗?5、为什么他总听你的而不听我的?我不知道。

6、他了解你多少?你非常了解他吗?7、你们每周怎么去那儿?8、李玫不知道那事儿,但我知道。

9、每天下班后,Tod都载我回家。

10、这些小狗都叫什么?它的名字是Tian-Tian,那只叫Xiao-hu。

11、他准时上学并及时做作业。

12、没人相信他,因为他经常撒谎,他多丢人啊!13、你妈把我的手表放在什么里边了?14、我像他,但却不喜欢他15、你这么辛苦工作是为了什么?第三章过去时态1、你去年经常拜访他们吗?2、三年前你对这种工作有多少经验?3、我没及时告诉她,因为我病了。

4、我上周就认识他了,可他却一点儿也不了解我。

5、昨天你和王先生在哪儿?6、你见过那个新来的老板了吗/7、去年她像妈妈,可今年谁也不像。

8、谁问有关我学习的事儿来着9、爸爸昨晚没有责怪我和弟弟。

10、昨天你从谁那儿听到的那个消息?我是从报纸上看到的。

11、上周我的电脑又出毛病了。

12、昨天我很紧张,你呢?13、你们的值日生昨天擦黑板了吗?14、今天上午李先生出什么事儿了?15、由于贫穷他去年就辍学了,我们明天去看看他吧!第四章不定式1、一言难尽!(一句话说不清楚)2、他昨天忘记带语文作业了。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

程序设计挑战式课程设计极限挑战挑战,不是为着征服自然,而是为着突破自我,超越自我生命有极限,思想无极限,高度有极限,境界无极限作业名称:算法演示程序 学 院:航海学院 班 级:03011403 学 号:2013300951 姓 名:苏和 团队组成:西北工业大学2022年4月25日1、问题与背景(描述程序所要解决的问题或应用背景)2、开发工具(列出所使用的开发工具和第3方开发库)3、主要功能(详细说明程序的功能)4、设计内容(详细描述解决问题的原理和方法、算法、数据结构等)5、程序文件与工程名称(标出程序中所有文件名、工程名称及其说明)6、函数模块(程序中各个函数的原型声明及其说明)7、使用说明(运行程序的小型说明书)8、程序开发总结(简要叙述编写本作业的收获与思考)进行了巩固和训练。

9、运行截图(附上程序运行的截图画面,至少有1幅,截图越翔实得分越高)Windows中抓取当前活动窗口:Alt + Print Screen,抓取全屏:Print Screen。

或者使用HyperSnap等软件(百度搜索)。

10、源程序(附上程序源代码,若是多个文件,标出文件名)1.sort.cpp#include <stdio.h>#include <stdlib.h>#include "myh.h"int main(){int a[100],n,i,k;while(1){printf("\n\t\t\t 欢迎使用排序算法演示程序\n\n\n");printf(" 请输入所要排序的数据个数N(N<100)=");scanf("%d",&n);printf("\n");printf(" 请输入所要排序的数据:");printf("\n\n\t");for(i=0;i<n;i++) scanf("%d",&a[i]);//输入数据printf("\n");printf(" 请选择一种排序方法:\n\n");printf("\t1.冒泡排序\t 2.选择排序\t 3.插入排序\n");printf("\t4.快速排序\t 5.堆排序\t 6.归并排序\t 7.基数排序\n\n"); printf(" 您的选择是:");scanf("%d",&k);switch(k){case 1: Bubble(a,n);break;case 2: Selection(a,n);break;case 3: Insertion(a,n);break;case 4: Quick(a,n,0,n-1);break;case 5: Heap(a,n);break;case 6: MergeSort(a,0,n-1);break;case 7: int *a_p = a;Bucket(a_p,n);break;}printf("\n");printf(" 请选择排列方式:1.从小到大 2.从大到小\n\n");printf(" 您的选择是:");scanf("%d",&k);printf("\n\n");printf(" 结果是:\n\t");if(k=1){for(i=0;i<n;i++) printf("%d ",a[i]);//正序输出}else{for(i=n-1;i>=0;i--) printf("%d ",a[i]);//倒序输出}printf("\n\n 按Q键并确认退出,其他任意键继续:");getchar();if(getchar()=='q') break;printf("\n\n\n");}return 0;}2.sort_fun.cpp#include "myh.h"#include <math.h>#include <stdlib.h>void Bubble(int a[],int n){//冒泡排序int i,j,t;for(j=0;j<n-1;j++)for(i=0;i<n-1-j;i++)//一趟排序if(a[i]>a[i+1]){t=a[i];a[i]=a[i+1];a[i+1]=t;//交换}}void Selection(int a[],int n){//选择排序int i,j,k,t;for(i=0;i<n-1;i++){k=i;for(j=i+1;j<n;j++)if(a[j]<a[k])k=j;//找出最小数if(i!=k){t=a[i];a[i]=a[k];a[k]=t;//如果不是本身则与相应的a[i]交换}}}void Insertion(int a[],int n){//插入排序int i,k,t;for(i=1;i<n;i++){t=a[i];k=i-1;while(t<a[k]){//与前边的数依次比较a[k+1]=a[k];//逐个后移k--;if(k==-1)break;}a[k+1]=t;//插入原数据}}void Quick(int a[],int n,int left,int right){//快速排序,left、right分别为数组左右边界int i,j,t;if(left<right){i=left;j=right+1;while(1){while(i+1<n&&a[++i]<a[left]);//向后搜索大于a[left]的数while(j-1>-1&&a[--j]>a[left]);//向前搜索小于a[left]的数if(i>=j)break;t=a[i];a[i]=a[j];a[j]=t;//交换}t=a[left];a[left]=a[j];a[j]=t;Quick(a,n,left,j-1);Quick(a,n,j+1,right);//左右半部分分别再次快速排序}}void Shift(int a[] , int i , int m){//建堆int k,t;t=a[i];k=2*i+1;while(k<m){if((k<m-1)&&(a[k]<a[k+1])) k ++;if(t<a[k]){a[i]=a[k];//使数列成为一棵完全二叉树的存储结构i=k; //即成为小根堆k=2*i+1; //ki<=k(2i)且ki<=k(2i+1)(1≤i≤n)}else break;}a[i]=t;}void Heap(int a[] , int n){//堆排序int i,k;for(i=n/2-1;i>=0;i--) Shift(a,i,n);//初始化操作:将a[n]构造为初始堆for(i=n-1;i>=1;i--){//每一趟排序的基本操作:将当前无序区的k=a[0]; //堆顶记录a[1]和该区间的最后一个记录交换,a[0]=a[i]; //然后将新的无序区调整为堆(亦称重建堆)a[i]=k;Shift(a,0,i);}}void MergeSort(int R[],int low,int high){//归并排序int mid;if(low<high){mid=(low+high)/2;MergeSort(R,low,mid);MergeSort(R,mid+1,high);Merge(R,low,mid,high);//重复运行}}void Merge(int *R,int low,int m,int high){int i=low,j=m+1,p=0;int *R1;R1=(int *)malloc((high-low+1)*sizeof(int));//申请空间,用以放置合并后的序列if(!R1)return;while(i<=m&&j<=high)R1[p++]=(R[i]<=R[j])?R[i++]:R[j++];while(i<=m)R1[p++]=R[i++];while(j<=high)R1[p++]=R[j++];for(p=0,i=low;i<=high;p++,i++) R[i]=R1[p];//两两比较选择相对小的元素放入到合并空间}void Bucket(int *p , int n){//基数排序int maxNum= findMaxNum( p , n );//获取数组中的最大数int loopTimes = getLoopTimes(maxNum);//获取最大数的位数,次数也是再分配的次数。

int i;for( i = 1 ; i <= loopTimes ; i++) {//对每一位进行桶分配sort2(p , n , i );}}int getLoopTimes(int num){//获取数字的位数int j = 1 ;int temp = num/10;while( temp != 0 ) {j++;temp = temp / 10;}return j;}int findMaxNum( int *p , int n){//查询数组中的最大数int i ;int m = 0;for( i = 0 ; i < n ; i++) {if(*(p+i) > m) {m = *(p+i);}}return m;}void sort2(int *p , int n , int loop){//将数字分配到各自的桶中,然后按照桶的顺序输出排序结果int buckets[100][100] ;//建立一组桶int tempNum = (int) pow(10 , loop-1);int i , j ;for( i = 0 ; i < n ; i++ ) {//求桶的index的除数int row_index = (*(p+i) / tempNum) % 10;for(j = 0 ; j < 20 ; j++) {if(buckets[row_index][j] ==NULL) {buckets[row_index ][j] = *(p+i) ;break;}}}int k = 0 ;//将桶中的数,倒回到原有数组中for(i = 0 ; i < 10 ; i++) {for(j = 0 ; j < 20 ; j++) {if(buckets[i][j] != NULL) {*(p + k ) = buckets[i][j] ;buckets[i][j]=NULL;k++;}}}}3.myh.hvoid Bubble(int a[],int n);void Selection(int a[],int n);void Insertion(int a[],int n);void Quick(int a[],int n,int left,int right);void Heap(int a[] , int n);void MergeSort(int R[],int low,int high); void Bucket(int *p , int n);void Merge(int *R,int low,int m,int high); int getLoopTimes(int num);int findMaxNum( int *p , int n);void sort2(int *p , int n , int loop);。

相关文档
最新文档