姜淞文 发表于 2021-10-3 10:55:53

姜淞文

我叫姜淞文

陈沭聿 发表于 2022-9-25 10:13:20

#include<iostream>
#include<iomanip>
using namespace std;
int main(){
    cout<<fixed<<setprecision(2)<<(96.0+93.0+98.0)/3.0<<endl;
    return(0);
}

姜淞文 发表于 2022-10-2 09:16:56

I have a backpack.
It is large and it is blue.
It is a birthday gift from my parents.
I love it very much.
It is very"hard-working",
because I keep all my school things in it.
It is very heavy.
It is with all the time during school days.
It is a good friend of mine.
   

姜淞文 发表于 2022-10-2 09:36:37

#include <iostream>
using namespace std;
int main() {
    double length = 2.5;
    cout<<"zhou chang:"<<4*length<<endl;
    cout<<"mian ji:"<<length*length<<endl;
    return 0;
}

姜淞文 发表于 2022-11-6 09:31:49

#include <iostream>
using namespace std;
int main(){
    int y,m;
    cin >> y>>m;
      if(m==1||m==3||m==5||m==7||m==8||m==10||m==12)   
          cout<<31;
      if(m==4||m==6||m==9||m==11)                     
          cout<<30;
      if(m==2){
      if(y%100!=0 && y%4 ==0 || y%400==0) cout<<29;
      else cout<<28;
      }
   

    return 0;
}

姜淞文 发表于 2022-11-6 09:46:08

#include <iostream>
using namespace std;
int main () {
    int a,b,c,d;
    cin >> a >> b >> c ;
    if (a <b){
   d = a;
   a = b;
   b = d;   
    }
    if ( a < c){
      d = a;
      a = c;
      c = d;
    }
    if (b > c) {
      cout <<a << " " << b << " " << c ;
    }else{cout << a << " " << c << " " << b ;
      
    }
    return 0;
   
    }

姜淞文 发表于 2022-11-6 10:25:33

#include <iostream>
using namespace std;
int main () {
    int a,b,c,d;
    cin >> a >> b >> c ;
    if (a <b){
   d = a;
   a = b;
   b = d;   
    }
    if ( a < c){
      d = a;
      a = c;
      c = d;
    }
    if (b > c) {
      cout <<a << " " << b << " " << c ;
    }else{cout << a << " " << c << " " << b ;
      
    }
    return 0;
   
    }

姜淞文 发表于 2022-11-6 10:31:17

#include <iostream>
using namespace std;
int main() {   
    cout<<(12302-(1032-1))/234;
    return 0;

}

倍数

姜淞文 发表于 2022-11-6 10:32:11

#include<iostream>
#include<iomanip>
using namespace std;
int main(){
    cout<<fixed<<setprecision(2)<<(96.0+93.0+98.0)/3.0<<endl;
    return(0);
}

姜淞文 发表于 2022-11-6 10:34:20

#include <iostream>
using namespace std;
int main() {
    cout<<"23"<<endl;
    return 0;
      
}
页: [1] 2
查看完整版本: 姜淞文