#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=b) cout<<a; else cout<<b; } // 整型 int
// 浮点型 double 保留小数点位数 cout<<fixed<<setprecision(5); // 字符型 char

2 条评论

  • @ 2024-11-12 17:04:22

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=b) cout<<a; else cout<<b; } // 整型 int
    // 浮点型 double 保留小数点位数 cout<<fixed<<setprecision(5); // 字符型 char

    • @ 2024-11-5 17:25:52

      #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=b) cout<<a; else cout<<b; } // 整型 int
      // 浮点型 double 保留小数点位数 cout<<fixed<<setprecision(5); // 字符型 char

      • 1