大奖赛现场统分(哈工大Mooc)
发布日期:2021-06-30 22:22:18 浏览次数:2 分类:技术文章

本文共 1145 字,大约阅读时间需要 3 分钟。

Mooc课后习题集 及 做到的一些有趣的题

这是我初学c开始有意识的记录自己做的每一道题开始写下的代码水平 一个一个代码发出来 直到我现在学的数据结构 那个时候还不会注释 格式什么的也是按照自己怎么喜欢怎么来 如果真不会看会代码理解一下 qwq 如代码有错请见谅 毕竟都好久以前敲得了hhh ~~

如果对各位的思路引导有帮助那更好

#include 
#include
#define len 10int main(){
int i,j; int playerName[len]={
0},judgeName[len]; float finalscore[len]={
0},score[len][len],judgescore[len][len],sum1[len]; float max,min,sum=0; int playersNumber,judgesNumber; int tempName; float tempScore; printf("How many Athletes\n"); scanf("%d",&playersNumber); printf("How many judges?\n"); scanf("%d",&judgesNumber); printf("Scores of Athletes:\n"); for(i=0;i<=playersNumber-1;i++) {
printf("Athlete %d is playing.\n",i+1); printf("Please enter his number code:\n"); scanf("%d",&playerName[i]); max=score[i][0]; min=10; sum=0; for(j=0;j<=judgesNumber-1;j++) {
judgeName[j]=j+1; printf("Judge %d gives score:\n",j+1); scanf(" %f",&score[i][j]); if(score[i][j]>max) {
max=score[i][j]; } if(score[i][j]

转载地址:https://love6.blog.csdn.net/article/details/110240676 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:单词接龙(哈工大Mooc)
下一篇:星期判断

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2024年04月09日 02时38分45秒