49 条题解

  • 1
    @ 2024-2-23 10:40:37
    • #include <bits/stdc++.h>
    • using namespace std; int main()
    • {
    • int a,b,c;
    • cin>>a>>b>>c;
    • int ans=a; if (b>ans)
    • {
    • ans=b;
    • }
    • if (c>ans)
    • {
    • ans=c;
    • }
    • cout<<ans<<endl ;
    • return 0;
    • }
    • 1
      @ 2024-2-23 10:38:44

      #include<bits/stdc++.h> using namespace std; int main(){ int a[10005]; for(int i=1;i<=3;i++) cin>>a[i]; for(int i=1;i<=3;i++){ for(int j=1;j<=3-i;j++){ if(a[j]<a[j+1]) swap(a[j],a[j+1]); } } for(int i=1;i<=1;i++) cout<<a[1]; }

      • 1
        @ 2024-2-23 10:38:27

        #include<bits/stdc++.h> using namespace std; int main(){ int a[10005]; for(int i=1;i<=3;i++) cin>>a[i]; for(int i=1;i<=3;i++){ for(int j=1;j<=3-i;j++){ if(a[j]<a[j+1]) swap(a[j],a[j+1]); } } for(int i=1;i<=1;i++) cout<<a[1]; }

        • 1
          @ 2024-2-23 9:59:44
          • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
          • 1
            @ 2024-2-23 9:59:30
            • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
            • 1
              @ 2024-2-23 9:59:07
              • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
              • 1
              • 0
                @ 2025-2-21 13:42:06

                #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b and a>c) { cout<<a;} if(b>a and b>c) { cout<<b;} if(c>b and c>a) { cout<<c;} if(ab and bc) { cout<<c;} return 0; }

                • 0
                  @ 2024-2-23 9:59:42
                  • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                  • 0
                    @ 2024-2-23 9:59:42
                    • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                    • 0
                      @ 2024-2-23 9:59:41
                      • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                      • 0
                        @ 2024-2-23 9:59:37
                        • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                        • 0
                          @ 2024-2-23 9:59:35
                          • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                          • 0
                            @ 2024-2-23 9:59:35
                            • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                            • 0
                              @ 2024-2-23 9:59:33
                              • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                              • 0
                                @ 2024-2-23 9:59:33
                                • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                                • 0
                                  @ 2024-2-23 9:59:32
                                  • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                                  • 0
                                    @ 2024-2-23 9:59:32
                                    • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                                    • 0
                                      @ 2024-2-23 9:59:32
                                      • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                                      • 0
                                        @ 2024-2-23 9:59:32
                                        • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }
                                        • 0
                                          @ 2024-2-23 9:59:32
                                          • #include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int ans=a; if (b>ans) { ans=b; } if (c>ans) { ans=c; } cout<<ans<<endl; return 0; }

                                          信息

                                          ID
                                          2133
                                          时间
                                          1000ms
                                          内存
                                          256MiB
                                          难度
                                          2
                                          标签
                                          递交数
                                          1124
                                          已通过
                                          521
                                          上传者