2 条题解

  • 1
    @ 2024-11-16 21:36:28

    water

    #include<bits/stdc++.h>
    using namespace std;
    
    int main(){
    	int a,b;
    	cin>>a>>b;
    	double biaozhun=0.9*(a-100);
    	if(biaozhun*1.1<b){
            cout<<"fat";
            return 0;
        }
    	if(biaozhun*0.9>b){
            cout<<"thin";
            return 0;
        }
    	else cout<<"standard";
    	return 0;
    }
    
    • -1
      @ 2024-7-4 11:11:12

      #include<iostream> using namespace std; int main(){ double a,b,weigh; cin>>a>>b; weigh=(a-100)0.9; if(weigh1.1<b){ cout<<"fat"; }else if(weigh*0.9>b){ cout<<"thin"; }else{ cout<<"standard"; } }

      • 1

      信息

      ID
      607
      时间
      1000ms
      内存
      64MiB
      难度
      8
      标签
      递交数
      156
      已通过
      29
      上传者