- 博客(6)
- 收藏
- 关注
原创 The Game C语言
题目描述One morning, you wake up and think: "I am such a good programmer. Why not make some money?'' So you decide to write a computer game.The game takes place on a rectangular board consisting of w * h squares. Each square might or might not contain a gam
2022-04-22 21:43:01
1277
原创 The Troublesome FrogC语言
In Korea, the naughtiness of the cheonggaeguri, a small frog, is legendary. This is a well-deserved reputation, because the frogs jump through your rice paddy at night, flattening rice plants. In the morning, after noting which plants have been flattened,
2022-04-22 21:41:26
280
原创 Maya CalendarC语言
题目描述During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long year, calledHaab, which had 19 months. Each of...
2022-04-22 21:39:03
171
原创 487-3279C语言
题目描述Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Waterloo by dialing the memorable TUT-GLOP. Sometimes only p
2022-04-22 21:37:24
1165
原创 龙虎斗C语言
题目描述轩轩和凯凯正在玩一款叫《龙虎斗》的游戏,游戏的棋盘是一条线段,线段上有nn个兵营(自左至右编号1 \sim n1∼n),相邻编号的兵营之间相隔11厘米,即棋盘为长度为n-1n−1厘米的线段。ii号兵营里有c_ici位工兵。 下面图 1 为n=6n=6的示例:轩轩在左侧,代表“龙”;凯凯在右侧,代表“虎”。 他们以mm号兵营作为分界, 靠左的工兵属于龙势力,靠右的工兵属于虎势力,而第mm号兵营中的工兵很纠结,他们不属于任何一方。一个兵营的气势为:该兵营...
2022-04-22 21:36:03
275
原创 C语言程序设计教程(第三版)课后习题8.2
题目描述求方程ax^2+bx+c=0的根,用三个函数gz,ez和sz分别求当b^2-4ac大于0、等于0和小于0时的根,并输出结果。从主函数输入a、b、c的值。(输出保留3位小数)输入a b c(a不等于0,b,c不同时为0)输出x1=? x2=?样例输入4 1 1样例输出x1=-0.125+0.484i x2=-0.125-0.484i#include <stdio.h>#include <math.h>//大于0void gz(
2022-04-22 21:33:53
1680
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人