acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 第一篇题解

    #include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a.size()!=b.size()){ //情况一 cout<<1; }else if(a==b){ //情况二 cout<<2; }else{ bool f=true; for(int i=0;i<a.length();i++){ if(tolower(a[i])!=tolower(b[i])){ f=false; break; } } if(f){ //情况三 cout<<3; }else{ //情况四 cout<<4; } } return 0; }

    userId_undefined

    BugFactory

    时间刺客模拟·模拟练习生倔强青铜
    7阅读
    0回复
    0点赞
首页