Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81878 刘千亦 加密的病历单 C++ Wrong Answer 1 MS 276 KB 401 2024-07-12 15:57:35

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char a[1600]; cin >> a; for(int i=0;i<strlen(a);i++){ if(a[i] >= 'A' && a[i] <= 'Z'){ a[i] += 32; if(a[i] >'z'){ a[i]-= 26; } } else{ a[i] -= 32; a[i] +=3; if(a[i] >'Z'){ a[i]-= 26; } } } for(int i=strlen(a) - 1;i>=0;i--){ cout << a[i]; } }


Run Info:

------Input------
QkuGixGiCRBSbSfYmYxtQsPuHaYSYYKSVYuywxqiHIBqOQOnp
------Answer-----
SQrtrTelkLTAZBXbyvnbbvbDkXsVtWAbPbIvEveufLjALjXNt
------Your output-----
SQoqoTbihLTAZBXyvskyysyDhXpVqWAyPyIsEsbrcLgALgXNq