1 条题解

  • 0
    @ 2025-2-5 18:19:51

    有点难

    #include<bits/stdc++.h>
    using namespace std;
    long long x;
    long long y; 
    int main(){
    	cin>>x>>y;
    	if(x+12000*2>=y){
    		cout<<5;
    	}else{
    		if(x+18000*2>=y){
    			cout<<6;
    		}else{
    			if(x+24000*2>=y){
    				cout<<8;
    			}else{
    				if(x+36000*2>=y){
    					cout<<11;
    				}else{
    					cout<<((y-x-1)/2/48000+1)*13;
    				}
    			}
    		}
    	}
    	return 0;
    }
    
    
    • 1

    信息

    ID
    1050
    时间
    1000ms
    内存
    512MiB
    难度
    7
    标签
    递交数
    51
    已通过
    12
    上传者