Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4971 莫业祁 15听到多少次掌声 C++ Accepted 0 MS 260 KB 511 2024-10-13 12:30:22

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int i=0,j=0,k=0,jz[40],sum=0; int main(){ for(int a=1;a<10;a++){ i+=1; j+=2; k+=4; jz[i]++; jz[j]++; jz[k]++; } for(int i=1;i<=40;i++){ if(jz[i]!=0)sum++; } cout<<sum; return 0; }