1.单词

2.翻译

卷积神经网络是深度学习中最重要的模型之一,广泛应用于计算机视觉任务,例如图像分类、目标检测和图像分割。与传统的全连接神经网络相比,卷积神经网络通过局部连接和权重共享的方式显著减少了模型参数的数量,从而降低了计算复杂度。卷积层能够自动从原始图像中提取特征,例如边缘、纹理和形状等。随着网络层数的增加,模型可以学习到更加抽象和复杂的特征表示。此外,池化层通常用于降低特征图的空间维度,从而减少计算量并提高模型的鲁棒性。在实际应用中,卷积神经网络已经在医学影像分析、自动驾驶和人脸识别等领域取得了重要进展。然而,训练深度卷积神经网络通常需要大量标注数据和强大的计算资源,这也成为当前研究的重要挑战之一。

3,代码

96.奖学金

#include<bits/stdc++.h>
using namespace std;
int yuanshi(int qimo,int lunwen)
{
    if(qimo>80&&lunwen>=1)
        return 8000;
    else    
        return 0;
}
int wusi(int qimo,int banji)
{
    if(qimo>85&&banji>80)
        return 4000;
    else    
        return 0;    
}
int chengji(int qimo)
{
    if(qimo>90)
        return 2000;
    else    
        return 0;    
}
int xibu(int qimo,string xi_bu)
{
    if(qimo>85&&xi_bu=="Y")
        return 1000;    
    else    
        return 0;
}
int gongxian(int banji,string ganbu)
{
    if(banji>80&&ganbu=="Y")
        return 850;    
    else    
        return 0;
}
int main()
{
    int a;
    while(cin>>a)
    {
        vector<string> vec1;//存名字 
        vector<string> vec2;//期末平均成绩 
        vector<string> vec3;
        vector<string> vec4;
        vector<string> vec5;
        vector<string> vec6;        
        for(int i=0;i<a;i++)
        {
            string b1;
            cin>>b1;
            vec1.push_back(b1);
            string b2;
            cin>>b2;
            vec2.push_back(b2);
            string b3;
            cin>>b3;
            vec3.push_back(b3);
            string b4;
            cin>>b4;
            vec4.push_back(b4);
            string b5;
            cin>>b5;
            vec5.push_back(b5);
            string b6;
            cin>>b6;
            vec6.push_back(b6);    
        }
        string name;
        int max_money=0;
        int all_money=0;
        for(int i=0;i<vec1.size();i++)
        {
            int temp_money=0; 
            int qimo=stoi(vec2[i]) ;
            int banji=stoi(vec3[i]);
            string ganbu=vec4[i];
            string xi_bu=vec5[i];
            int lunwen=stoi(vec6[i]);
            int yuanshi_money=yuanshi(qimo,lunwen);
            int wusi_money=wusi(qimo,banji);
            int chenji_money=chengji(qimo);
            int xibu_money=xibu(qimo,xi_bu);
            int banji_money=gongxian(banji,ganbu);
            temp_money=yuanshi_money+wusi_money+chenji_money+xibu_money+banji_money;
            if(temp_money>max_money)
                {
                    max_money=temp_money;
                    name=vec1[i];
                }
            all_money=temp_money+all_money;
        }
        
        cout<<name<<endl;
        cout<<max_money<<endl;
        cout<<all_money<<endl;
    cout<<endl;        
                
    }

    return 0;
}暴力解

97.回文数2

#include<bits/stdc++.h>
using namespace std;
bool huiwen2(int a)
{
    string b;
    while(a>0)
    {
        int m=a%2;
        b=b+to_string(m);
        a=a/2; 
    }
    string c=b;
    reverse(b.begin(),b.end());
    if(b==c)
        return true;
    else 
        return false;
}
bool huiwen10(int a)
{
    string b=to_string(a);
    string c=b;
    reverse(b.begin(),b.end());
    if(b==c)
        return true;
    else 
        return false;    
}
int main()
{
    int a;
    while(cin>>a)
    {
        if(huiwen10(a))
            {
                if(huiwen2(a))
                    cout<<"Yes"<<endl;
                else
                    cout<<"No"<<endl;                            
            }
        else    
            cout<<"No"<<endl;
        }
    
    return 0;
}字符串拼接,转为2进制,记得逆序

98.加法器

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string a;
    while(getline(cin,a))
    {
        int temp=0;
        int count=0;
        for(int i=0;i<a.size();i++)
        {
            
            if(isdigit(a[i]))
            {
                char s=a[i];
                int ss=s-'0';
                temp=temp*10+ss;
                if(i==a.size()-1)
                {
                    count=count+temp;    
                }
            }
            else
            {
                count=count+temp;
                temp=0; 
            }
        }
        cout<<count<<endl;
    }
    return 0;
}

字符串拼接,若大于10的数,则每×10往后加

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐