提交时间:2023-07-22 15:15:49

运行 ID: 24279

#include<bits/stdc++.h> using namespace std; int main(){ int x,x1,x2,x3,x4; cin>>x; x1=x%1000%100%10; x2=(x-x1)%1000%100/10; x3=(x-x1-x2)%1000/100; x4=(x-x1-x2-x3)/1000; if(x3==9&&x1!=0&&x2!=0){ cout<<x4+1<<0<<0<<0; } }