Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5757 郑元泰 11加密规则 C++ Accepted 0 MS 268 KB 357 2024-12-14 15:25:56

Tests(10/10):


Code:

# include<iostream> using namespace std; int main(){ int a,b,c,d,e,f; scanf("%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f); char a1='A'+a; int b1; if(b%2==0) b1=b/2; else b1=b; int c1=(a+b+c)%10; int d1=d; int e1=('l'+'e'+e)/10%10; int f1=(a+b+c+d+e+f)%10; cout<<a1<<b1<<c1<<d1<<e1<<f1; return 0; }