Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23549 yihang 砝码称重 C++ 通过 0 MS 260 KB 456 2023-07-15 18:01:45

Tests(10/10):


#include"bits/stdc++.h" using namespace std; int a1,a2,a3,a4,a5,a6,s[10000],ans=0; int main(){ cin>>a1>>a2>>a3>>a4>>a5>>a6; for(int i=0;i<=a1;i++){ for(int o=0;o<=a2;o++){ for(int p=0;p<=a3;p++){ for(int a=0;a<=a4;a++){ for(int d=0;d<=a5;d++){ for(int x=0;x<=a6;x++){ s[i*1+o*2+p*3+a*5+d*10+x*20]++; } } } } } } for(int i=0;i<1000;i++){ if(s[i]>0)ans++;} cout<<"Total="<<ans-1; }


测评信息: