Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8187 邓小龙 11加密规则 C++ Accepted 0 MS 256 KB 369 2025-06-14 20:52:46

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char A; int a,b,c,d,e,f; scanf("%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f); f=(a+b+c+d+e+f)%10; c=(a+b+c)%10; cout<<(char)(a+'A'); if(b%2==0){ b=b/2; } cout<<b; cout<<c; cout<<d; e=('l'+'e'+e)/10%10; cout<<e; cout<<f; return 0; }