社区讨论
求qwq
B4064[GESP202412 二级] 寻找数字参与者 5已保存回复 7
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 7 条
- 当前快照
- 1 份
- 快照标识符
- @mkrsj2ey
- 此快照首次捕获于
- 2026/01/24 12:09 4 周前
- 此快照最后确认于
- 2026/02/11 02:30 上周
CPP
#include <bits/stdc++.h>
using namespace std;
int main(){
int t,a[10001],cnt[10001]={};
cin>>t;
for(int i=0;i<t;i++){
cin>>a[i];
if(i*i*i*i==a[i]) cnt[i]++;
}
for(int i=0;i<t;i++){
if(cnt[i]==0) cout<<"-1"<<endl;
else cout<<cnt[i]<<endl;
}
}
回复
共 7 条回复,欢迎继续交流。
正在加载回复...