25 条题解

  • -10
    @ 2024-2-23 16:30:55

    #include<bits/stdc++.h>using namespace std;int main(){ double x,y; cin>>x; if(0<=x && x<5){ y=-x+2.5; printf("%.3f",y); }if(5<=x && x<10){ y=2-1.5*(x-3)*(x-3); printf("%.3f",y); }if(10<=x && x<20){ y=x/2-1.5; printf("%.3f",y);} return 0; }

    • -10
      @ 2024-1-17 9:05:24

      #include<bits/stdc++.h>using namespace std;int main(){ double x,y; cin>>x; if(0<=x && x<5){ y=-x+2.5; printf("%.3f",y); }if(5<=x && x<10){ y=2-1.5*(x-3)*(x-3); printf("%.3f",y); }if(10<=x && x<20){ y=x/2-1.5; printf("%.3f",y);} return 0; }

      • -20
        @ 2024-2-23 9:41:11

        #include<bits/stdc++.h> using namespace std; int main() { double x,y; cin>>x; if(0<=x && x<5){ y=-x+2.5; printf("%.3f",y); } if(5<=x && x<10){ y=2-1.5*(x-3)*(x-3); printf("%.3f",y); } if(10<=x && x<20){ y=x/2-1.5; printf("%.3f",y); } return 0; }

        • -23
          @ 2024-1-19 9:19:15
          #include<bits/stdc++.h>
          using namespace std;
          int main
          
          • -25
            @ 2024-1-16 21:10:57

            printf

            信息

            ID
            97
            时间
            1000ms
            内存
            128MiB
            难度
            5
            标签
            (无)
            递交数
            1354
            已通过
            476
            上传者