1 solutions

  • -2
    @ 2026-5-16 10:41:24

    #include<bits/stdc++.h> using namespace std;

    int main() { string s; cin>>s; reverse(s.begin(),s.end()); int n=s.size(); for(int i=0;i<n;i++) { if(s[i]'6') s[i]='9'; else if (s[i]'9') s[i]='6'; } cout<<s; return 0; }

    Information

    ID
    2395
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    31
    Accepted
    12
    Uploaded By