acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • 题解

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,k; cin>>a; for(int i=1;i<=a;i++){ k=0; c=0; cin>>b; d=b; e=d; while(e!=0){ e=e/10; k++; } while(b!=0){ c=c+pow(b%10,k); b=b/10; } if(c==d){ cout<<"T"<<endl; } else{ cout<<"F"<<endl; } } return 0; }

    userId_undefined

    LS_YZY

    倔强青铜出道萌新题解仙人时空双修者模拟·模拟练习生快乐小狗
    47阅读
    0回复
    2点赞
  • 题解

    userId_undefined

    无敌的鳖佬仔给老爷爷猜猜被

    7月全勤卷王秩序白银时间刺客空间掌握者循环·循环打卡人I/O·IO入门者
    19阅读
    0回复
    1点赞
  • 题解

    #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ int temp; cin>>temp; int temp1=temp; int cnt=0; while(temp1){ cnt++; temp1/=10; } int temp2=temp; int sum=0; while(temp2){ sum+=pow(temp2%10,cnt); temp2/=10; } if(sum==temp){ cout<<"T"<<endl; }else{ cout<<"F"<<endl; } } }

    userId_undefined

    上海浦东AAA推土机&服务器批发

    时间刺客空间掌握者时空双修者倔强青铜
    0阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页