-
Bio
别看 #include <iostream> #include <algorithm> using namespace std; int main() { int n=0,a[3]; cin>>n;
for(int t=0; ;t++) { if (n==495) { cout<<t<<endl; break; } a[0]=n/100; a[1]=n%100/10; a[2]=n%10; sort(a,a+3); n=a[2]*100+a[0]-a[0]*100-a[2]; } return 0;
}
-
Accepted Problems
-
Recent Activities
Problem Tags
- 编程考级
- 29
- GESP
- 29