3 条题解

  • 1
    @ 2023-11-26 16:51:54
    #include<iostream>
    #include<cmath>
    using namespace std;
    
    int main(){
    	int m,t,s; cin>>m>>t>>s;
    	if( t!=0 ){
    		m -= ceil(1.0*s/t);
    		if( m < 0 ) m=0;
    	}else m=0;
    	
    	cout<<m;
    	return 0;
    } 
    
    • -1
      @ 2023-11-19 16:17:24

      #include #include using namespace std; int main (){ int m,t,s; cin>>m>>t>>s; if( t!=0 ){ m-= ceil(1.0*s/t); if( m < 0) m=0; }else m=0;

      cout<<m;
      return 0;
      

      }

      • -2
        @ 2023-11-19 16:10:37

        #include #include using namespace std;

        int main(){ int m,t,s; cin>>m>>t>>s; if( t!=0 ){ m -= ceil(1.0*s/t); if( m < 0 ) m=0; }else m=0; cout<<m; return 0; }

        • 1

        信息

        ID
        19
        时间
        1000ms
        内存
        512MiB
        难度
        6
        标签
        递交数
        210
        已通过
        70
        上传者