竞赛
考级
#include<iostream> using namespace std; int main(){ int n,sum = 0; cin>>n; int t = n; while(n){ int x = n%10; sum+=xxx; n/=10; } if(sum == t){ cout<<"YES"; }else { cout<<"NO"; } return 0; }
复仇者_澜
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a=n%10; int b=n/10%10; int c=n/100; if(aaa+bbb+ccc==n){ cout<<"YES"; }else cout<<"NO"; return 0; }
YFT
_1943
x=list(input()) y=[] z=0 for i in range(len(x)): y.append(int(x[i])) for i in y: z+=i**3 if int(''.join(x)) == z: print('YES') else: print('NO')
不喜欢c--和yp
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a; b=a/100; c=a/10%10; d=a%10; if(pow(b,3)+pow(c,3)+pow(d,3)==a){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }
LELECHA
#include <bits/stdc++.h> using namespace std; int main(){ int n,a,b,c; cin>>n; a=n%10; b=n/10%10; c=n/100%10; if(n==aaa+bbb+ccc){ cout<<"YES"; }else if(n!=aaa+bbb+ccc){ cout<<"NO"; } return 0; }
倒车请故意
#include <iostream> #include <cmath> using namespace std; int main() { int a,b,c,d; cin>>a; b=a/100; c=a/10%10; d=a%10; if(pow(b,3)+pow(c,3)+pow(d,3)==a) { cout<<"YES"; } else { cout<<"NO"; } return 0; }
源于惯性yoki
JMZ詹总
AS
肥肠的煎蛋
聪明的人类📬📬📬
1ntrEstingด้้้้้
suzifeng
#include<bits/stdc++.h> using namespace std; int main(){ //freopen("d.in","r",stdin); //freopen("d.out","w",stdout); int n; scanf("%d",&n); int a,b,c; a=n/100; b=n%100/10; c=n%10; if(aaa+bbb+ccc==n){ printf("YES"); }else{ printf("NO"); } return 0; }
136****9647
复仇者_黑客_摆烂崽
闯思得
6.
许肄霄
༺ཌༀTN黑客ༀད༻
参考勿复制,看着写一遍也好 #include <iostream> using namespace std; int main(){ int n; cin>>n; int c=n%100%10; int b=(n%100-c)/10; int a=(n-b-c)/100; cin>>a>>b>>c; if(aaa+bbb+ccc==n){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }
150****9508
#include<iostream> using namespace std; int main(){ int n=0,m; cin>>n; int a=n/100; int b=n/10%10; int c=n%10; if(n==aaa+bbb+ccc){ cout<<"YES"; }else{ cout<<"NO"; } }
ZDZL_复仇者_帥澜
共58条