6 条题解

  • 1
    @ 2025-1-18 15:39:31
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int jj = 0, mm = 0, bud;
        for (int i = 1; i <= 12; i++){
        	jj = jj + 300;
        	cin >> bud;
        	jj = jj - bud;
        	if (jj < 0){
        		cout << "-" << i;
        		return 0;
        	} else if (jj / 100 > 0){
        		mm = jj / 100 * 100;
        		jj = jj % 100;
    		}
    	}
    	jj = jj + mm * 1.2;
    	cout << jj;
    	return 0;
    }
    

    信息

    ID
    250
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    (无)
    递交数
    113
    已通过
    30
    上传者