1 条题解

  • 0
    @ 2025-12-6 13:57:14

    C++ :

    # include <iostream>
    using namespace std;
    int main(){
    	int count = 0;
    	for (int i=1;i<=(1000-10-5)/50;i++){
    		
    		for (int j=1;j<=(1000-50*i-5)/10;j++){
    			int last = 1000 - 50 * i - j * 10;
    			if (last % 5 == 0 && i + j + last / 5 == 100){
    				count++;
    				
    			} 
    		}
    	}
    	cout<<count<<endl;
    }
    
    • 1

    信息

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