Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104662 | 黄枳润 | 哪几扇门是打开的 | C++ | Time Limit Exceeded | 1000 MS | 248 KB | 664 | 2025-01-06 20:22:29 |
#include<iostream> using namespace std; int main(){ /* int n,a=0,c,b=0; cin>>n; for(int i=1;i<=n-1;i++){ a=i; c=a; b=0; while(c!=0){ b=b*10; b+=c%10; c=c/10; } if(a==b){ cout<<a<<endl; } } */ int a[100],s; for(int i=0;i<=99;i++){ a[i]=1; } for(int i=1;i<=99;i++){ for(int j=1;i<=100;j++){ if(a[j]%i==0){ a[j]+=1; } } } for(int i=0;i<=99;i++){ if(a[i]%1==0){ s+=1; } } cout<<s; return 0; }