http://122.51.117.130/home #include<bits/stdc++.h> using namespace std; long long a[10001]; int main(){ long long n,s=0; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; for(int i=1;i<=n;i++){ double x1=sqrt(a[i]); int x2=x1; if(x1==x2) s+=1; } cout<<s<<endl; for(int i=1;i<=n;i++){ double x1=sqrt(a[i]); int x2=x1; if(x1==x2) cout<<i<<” ”; } return 0; }
liyongwenabc
995378
资料、奖项与版本
资料
- 编号
- 995378
- 抓取
个人介绍
文章
还没有收录这位用户的文章。