UVa 10194 - Football

PINN疲劳寿命预测优化 本项目基于物理信息神经网络(PINN)构建材料疲劳寿命预测模型,通过融合Paris裂纹扩展方程与实验数据,实现裂纹扩展行为的精准预测。核心方法包括:1)将Paris方程作为物理约束嵌入神经网络训练;2)生成含噪声的模拟数据并进行归一化处理;3)采用PINN-GA联合优化框架,以裂纹扩展速率最小化为目标优化材料参数。该方案通过物理规律与数据驱动的结合,显著提升预测模型的泛化能力,为工程材料寿命评估提供新思路。 阅读详情

就是一个模拟题,稍有麻烦,基本还算是简单,但需注意的是题目有点问题,在第6条按字典序排序的时候是不分大小写的,在这里被坑了两次 ~~~

代码如下:

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>
char tourname[1000+2],game[1000][100];
typedef struct Team
{
    int b,c,d,e,f,g,h,i;
    char team[40];
} TT;
TT t[200+2];
int struct_cmp(const void *b,const void *a)  // qsort多条件排序
{
    int i;
    TT *c=(TT *)a;
    TT *d=(TT *)b;
    if(c->b!=d->b) return c->b-d->b;
    else if(c->d!=d->d) return c->d-d->d;
    else if(c->g!=d->g) return c->g-d->g;
    else if(c->h!=d->h) return c->h-d->h;
    else if(c->c!=d->c) return d->c-c->c;
    else
    {
        char s1[40]={'\0'},s2[40]={'\0'};
        strcpy(s1,d->team);
        strcpy(s2,c->team);
        for(i=0; i<strlen(c->team); i++) s2[i]=toupper(s2[i]);    // 不分大小写,所以要全部转化成大写或是小写再进行比较
        for(i=0; i<strlen(d->team); i++) s1[i]=toupper(s1[i]);
        return strcmp(s1,s2);
    }
}
void addsort(int T,int G)
{
    int i,j,numa,numb,fa,fb;
    char ma[40],mb[40];
    for(i=0; i<T; i++)
    {
        t[i].b=t[i].c=t[i].d=t[i].e=t[i].f=t[i].g=t[i].h=t[i].i=0;
    }
    for(i=0; i<G; i++)
    {
        sscanf(game[i],"%[^#]#%d@%d#%[^\n]",ma,&numa,&numb,mb);
        for(j=0; j<T; j++)
            if(strcmp(t[j].team,ma)==0)
            {
                fa=j;
                break;
            }
        for(j=0; j<T; j++)
            if(strcmp(t[j].team,mb)==0)
            {
                fb=j;
                break;
            }
        t[fa].c+=1;
        t[fb].c+=1;
        t[fa].h+=numa;
        t[fb].h+=numb;
        t[fa].i+=numb;
        t[fb].i+=numa;
        t[fa].g=t[fa].h-t[fa].i;
        t[fb].g=t[fb].h-t[fb].i;
        if(numa>numb)
        {
            t[fa].d++;
            t[fb].f++;
            t[fa].b+=3;
        }
        else if(numa<numb)
        {
            t[fa].f++;
            t[fb].d++;
            t[fb].b+=3;
        }
        else
        {
            t[fa].e++;
            t[fb].e++;
            t[fa].b++;
            t[fb].b++;
        }
    }
}
int main()
{
#ifdef test
    freopen("sample.txt","r",stdin);
    freopen("out.txt","w",stdout);
#endif
    int N,T,G;
    int i;
    scanf("%d",&N);
    getchar();
    while(N--)
    {
        gets(tourname);
        scanf("%d",&T);
        getchar();
        for(i=0; i<T; i++)
            gets(t[i].team);
        scanf("%d",&G);
        getchar();
        for(i=0; i<G; i++)
            gets(game[i]);
        addsort(T,G);
        qsort(t,T,sizeof(t[0]),struct_cmp);
        printf("%s\n",tourname);
        for(i=0; i<T; i++)
            printf("%d) %s %dp, %dg (%d-%d-%d), %dgd (%d-%d)\n",i+1,t[i].team,t[i].b,t[i].c,t[i].d,t[i].e,t[i].f,t[i].g,t[i].h,t[i].i);
        if(N!=0)
            puts("");
    }
    return 0;
}


Arduino、ESP32驱动BMP390L数字大气压传感器(压力传感器) BMP390L是一款博世新研发的工业级专用数字气压传感器,具有极高的温度稳定性、低漂移、低功耗。 阅读详情

相关推荐

抖音视频数据获取实战:从API调用到热门内容挖掘

通过抖音API获取视频数据,企业可快速构建数据驱动的运营体系。本文提供了从权限申请到商业落地的全流程指南,建议结合自身业务扩展功能。如有技术问题,欢迎​​评论​​区留言讨论!#抖音开发 #数据挖掘 #短视频运营 #API调用 #Python实战。

WBKJ_Noah_的博客 6393

uva 10194

题意:读取比赛结果,按积分,净胜球,进球数等的积分排名输出。。。 #include #include #include #include using namespace std; struct Team { char name[50]; int b,c,d,e,f,g,h,i; }team[50]; int n,t,g; int find(char *str) {

那些年 982

火山引擎之火山方舟知识库+OpenWebUI,搭建独属于自己的AI智能客服

创建接入点,接入点名称可按个人需求而定,比如Doubao-1.5-pro-32k,在添加模型选择Doubao-1.5-pro-32k,点击确定(PS:有些模型不支持知识库,若发现后续无法选择,请重新创建推理接入点。选择应用广场,创建零代码应用,在创建好的应用设置内编辑相关信息,并选择推理接入点,即先前建好的推理接入点;此处的模型名称是火山的模型ID名称,可在OpenWebUI设置-模型 中修改名称。至此所需的apikey和模型ID和请求的api地址(可选配置,非本文重点参数)。进入火山官网,注册账号。

AmaZInGvCH的博客 2652

UVa 10194 Football

/* coder: ACboy date: 2010-2-27 result: AC description: UVa 10194 Football*/#include #include #include #include using namespace std;// 竞标赛的的次数const int tournamentNameMAXN = 1

个人独立博客http://www.acb0y.cn/ 1330

Unity集成抖音小游戏:从IL2CPP配置到SDK接入全流程解析

本文详细解析了使用Unity开发抖音小游戏的完整流程。从关键的IL2CPP编译后端配置、PlayerSettings设置,到StarkSDK的接入与资源优化(如AutoStreaming),再到激励视频广告、录屏分享等核心功能的代码实现,提供了从环境准备到打包上传的全方位实战指南,帮助开发者高效完成技术适配。

weixin_27943395的博客 690

基于SOCKET的***网络软件的设计与实现

二、基于SOCKET的网络软件的需求。2、概要设计:画出软件系统结构图。3、详细设计:软件的详细设计,如类图、序列图、重要的算法流程图或伪代码,等等。4、实现:软件基本功能相关的截图和关键代码。

Recursions的博客 1371

UVa:10194 - Football (aka Soccer)

以下有两组代码,一组AC了,一组每

Ac_freedom 797

Python实现将pdf,docx,xls,doc,wps,zip,xlsx,ofd链接下载并将文件保存到本地

本文是该专栏的第31篇,后面会持续分享python的各种干货知识,值得关注。在工作上,尤其是在处理爬虫项目中,会遇到这样的需求。访问某个网页或者在采集某个页面的时候,正文部分含有docx,或pdf,或xls,或doc,或wps等链接。需要你使用python自动将页面上含有的这些信息链接下载并保存到指定文件夹。遇到这种情况需要怎么做呢?别担心,跟着笔者直接往下看正文的详细解决方法。(附完整代码)在有些网页的正文中,有时会有如下图中的doc链接。比如爬虫在采集正文数据的时候,像标题,正文内容,作者,发布时间等等

Python进阶专栏《爬虫实战进阶》,《Pyppeteer从入门到精通》原创作者 4145

UVa 10194 - Football (aka Soccer)

传送门 乍一看这题

一只冰熊 945

Bean named‘ddlApplicationRunner‘is expected to be of type ‘org.springframework.boot.Runner‘

springboot3.1.7整合mybatisplus3.5.3.2版本报错,sringboot3.x整合myabtis报错

雾林小妖的博客 1万+

【数字孪生与仿真技术】10:半导体制造中的虚拟量测技术深度解析:从多尺度建模到工业级应用

摘要:半导体制造过程中,晶圆加工需实时监测300+关键参数,传统物理量测技术面临产能损耗、延迟检测等痛点。本文系统阐述虚拟量测(Virtual Metrology)技术的完整解决方案,通过多尺度混合建模实现物理机理与数据驱动的深度融合。内容涵盖等离子体刻蚀、薄膜沉积等关键工艺的物理模型构建,LSTM神经网络的数据校正算法,以及边缘-云协同的实时部署架构。某12英寸晶圆厂实践表明,虚拟量测技术可减少70%物理量测频次,异常漏检率从18%降至3%,机台利用率提升11%。

专注于人工智能、软件开发、工控自动化、工厂数字化及智能化等领域,希望和大家共同进步! 2548

uva -- 10194 - Football (aka Soccer)

这道题,做得我内牛满面,满脸春光淡退去,只剩下惆怅无限,我从编译错误到达了答案错误,由答案错误又走到运行时错误,再到格式错误,最后终于ac了,这人生也忒多姿多彩了有木有啊,如果有一天,有哪位骚年,莅临此地,希望能一解你心中对此题的困惑,我做题的方法没什么特殊的技巧,最最朴实基础,却坎坷无数啊!类似这种 排序-检索 问题,无非是读入字符串,截出字符串,比较字符串,排序字符串,输出字符串。 从一

gusongji的专栏 577

SXU—软件测试方法和技术-朱少民-第四部分 软件测试流程和规范-附考点

软件测试方法和技术-朱少民-第四章 软件测试流程和规范—这本书最后一部分的考点整理,考点分析

weixin_63597914的博客 1752

UVA10194 Football (aka Soccer)

Problem A: Football (aka Soccer)  The Problem Football the most popular sport in the world (americans insist to call it "Soccer",but we will call it "Football"). As everyone knows, Brasi

潜水的程序猿 852

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

UVa Problem 10194 Football (aka Soccer) (足球)

// Football (aka Soccer) (足球) // PC/UVa IDs: 110408/10194, Popularity: B, Success rate: average Level: 1 // Verdict: Accepted // Submission

寂静山林 2281

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

UVA - 10194 Football (aka Soccer)

UVA - 10194 Football (aka Soccer)    点击打开链接 从这道题中收获蛮多,首先又一次知道自己的代码风格一点都不好,乱七八糟的,还有也就是抓不住题目重点,导致不停WA。 不过知道了还有strcasecmp这个函数,不区分大小写排序,并且从别人代码中学习风格,让程序清晰很多。 #include #include #include using namespace

有一种力量叫乐观 501

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

UVA 10194 - Football (aka Soccer)

The Problem Football the most popular sport in the world (americans insist to call it "Soccer",but we will call it "Football"). As everyone knows, Brasil is the country that have mostWorld Cup titles

殊途同归 844

UVA10194 Football (aka Soccer)【排序】

Football the most popular sport in the world (americans insist to call it “Soccer”, but we will call it “Football”). As everyone knows, Brasil is the country that have most World Cup titles (four of t...

海岛Blog 659

Uva 10194 Football (aka Soccer)

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1135 有点繁琐,2A。 按照题目描述的排序即可。 # include <stdio.h> # include <ctype.h&g...

aibiming0139的博客 157

UVA10194 FootBall aka Soccer

2014-02-27 0:05 这个题自己感觉就是结构体排序的问题 ,不过细节问题好像很多 ,,而且还得把题读得十分明白 ,这种超长的题目,果然还要锻炼自己英语功底 ,那几个足球术语都是海词现查的 今天(应该是昨天了) 没写完 明天(也就是今天) 继续把这个弄完 STL用的不好问题很多 2014-02-27 9:45 弄好了 提交了3次才过 ,这里有两个需要注意的地方 Le...

weixin_30802273的博客 169

Football (aka Soccer) UVA - 10194 足球 wa

/*   跪求好心人哪里错了,555555,已经wa好几个小时了,求求好心人帮助    */ //提交的时候我会把freopen注释掉的   现在还是 wa 的状态555555 #include&lt;cstdio&gt; #include&lt;iostream&gt; #include&lt;algorithm&gt; #include&lt;string&gt; #include&lt...

邓大王的博客 228

UVa_10194 - Football

The Problem Football the most popular sport in the world (americans insist to call it "Soccer", but we will call it "Football"). As everyone knows, Brasil is the country that have most World Cup ti

wowowoc的专栏 559

UVa10194 Football (aka Soccer)

Problem A: Football (aka Soccer)  The Problem Football the most popular sport in the world (americans insist to call it "Soccer",but we will call it "Football"). As everyone knows, Brasi

江枭的专栏 773

UVa 10194 - Football (aka Soccer)

The Problem Football the most popular sport in the world (americans insist to call it "Soccer", but we will call it "Football"). As everyone knows, Brasil is the country that have most World Cup titl

ACM2272902662的专栏 845

UVA 10194 Football (aka Soccer)

Problem A: Football (aka Soccer)  The Problem Football the most popular sport in the world (americans insist to call it "Soccer", but we will call it "Football"). As everyone knows, Bras

fcbruce 1252
上一篇: UVa 10115 - Automatic Editing
下一篇: UVa 10137 - The Trip
GooMaple
博客等级 码龄14年 79粉丝 197原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值