25 条题解

  • 2
    @ 2025-2-15 11:29:15

    20 条题解 0 rc2025xiadishuo LV 1 发表您的题解 2

    rc244yeboqian1 LV 6 @ 7 个月前 #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; }

    • 1
      @ 2024-7-16 14:46:25
      #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; }
        
      
      • 0
        @ 2025-2-22 11:54:15

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

        • 0
          @ 2025-2-22 11:26:38

          #include<bits/stdc++.h> using namespace std; int main(){ double a; cin>>a; if(a<=150)printf("%.1lf",0.4463a); if(a<=400 and a>150)printf("%.1lf",0.4663(a-150)+0.4463150); if(a>400)printf("%.1lf",0.5663(a-400)+0.4463150+0.4663250); return 0; }

          • 0
            @ 2025-2-22 11:18:08

            千里之行,始于足下。 每人的必经之路。 前面语法基础打的越狠,后面算法越稳。 每道题必须通过,但不必急于一时,实在做不出来的题目可以先放放,老师一起给大家讲, 等明白后再提交。

            不熟悉的题目必须二刷三刷。 求点赞,要被饿死了

            • @ 2025-2-22 11:55:24

              人家写题目上的东西你照抄下来有意义吗

          • 0
            @ 2025-2-15 11:45:41

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

            • 0
              @ 2024-7-16 13:48:59

              #include <bits/stdc++.h> using namespace std;

              int main(){ double x; cin>>x; double y; if(0<=x && x<5){ y=-x+2.5; }else if(5<=x && x<10){ y=2-1.5*(x-3)*(x-3); }else if(10<=x && x<20){ y=x/2-1.5; } cout<<fixed<<setprecision(3)<<y; return 0; }

              • 0
                @ 2024-7-16 10:43:54

                #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; }

                • 0
                  @ 2024-7-16 10:41: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; }

                  • 0
                    @ 2024-3-24 10:18:43
                    #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; }
                    
                    • 0
                      @ 2024-3-18 19:07: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; }
                      
                      • 0
                        @ 2024-3-17 9:50:26
                        #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; }
                        
                        • 0
                          @ 2024-3-6 17:58:50

                          #include<bits/stc++.h> using namespace std; int moin(){ doble 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 O;

                        • -1
                          @ 2024-3-10 9:21:28

                          #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; }

                          • -1
                            @ 2024-3-9 19:57:56

                            #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; }

                            • -1
                              @ 2024-3-6 18:06:40

                              #include<bits/stc++.h> using namespace std; int moin(){ doble 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 O;

                              • -3
                                @ 2024-3-3 10:34:02

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

                                } printf("%.3f",y); return 0; }

                                • -5
                                  @ 2024-3-3 9:03:07

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

                                  } printf("%.3f",y); return 0; }

                                  • -7
                                    @ 2024-3-2 17:34:57

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

                                    } printf("%.3f",y); return 0; }

                                    信息

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