1 条题解

  • 1
    @ 2024-11-24 11:27:21
    #include <iostream>
    using namespace std;
    int main() {
        int x, y;
    	cin >> x >> y ;
    	if(x==y){
    		cout << x*90 ; 
    	}	else if(x>y){
    		cout << y*90+(x-y)*60 ;
    	}   else if(x<y){
    	    cout << x*90+(y-x)*40 ;
    	} 
    	return 0;
    }
    

    信息

    ID
    4394
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    (无)
    递交数
    36
    已通过
    20
    上传者