Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115819 江梵睿 11加密规则 C++ Accepted 1 MS 276 KB 532 2025-04-04 19:30:27

Tests(10/10):


Code:

#include <iostream> #include <cstdio> using namespace std; int main() { int x,a,b,c,d,e,f; cin>>x; a=x/100000; b=x/10000%10; c=x/1000%10; d=x/100%10; e=x/10%10; f=x%10; char a1; int b1,c1,d1,e1,f1; a1=a+'A'; if(b%2==0){ b1=b/2; } else{ b1=b; } c1=(a+b+c)%10; d1=d; e1=('l'+'e'+e)/10%10; f1=(a+b+c+d+e+f)%10; cout<<a1<<b1<<c1<<d1<<e1<<f1; return 0; }