1 solutions
-
0
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int ge = n % 10; int shi = n / 10 % 10; int bai = n / 100 % 10; if(ge == 1) { ge = 9; } else { ge = 1; } if(shi == 1) { shi = 9; } else { shi = 1; } if(bai == 1) { bai = 9; } else { bai = 1; } cout<<bai * 100 + shi * 10 + ge * 1; return 0; }
- 1
Information
- ID
- 1802
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 21
- Accepted
- 15
- Uploaded By