Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115821 | 翁思宸 | 11加密规则 | C++ | Accepted | 1 MS | 276 KB | 587 | 2025-04-04 19:43:08 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() 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); int b1,c1,d1,e1,f1; char a1; 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; }