Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8180 | 邓小龙 | 11加密规则 | C++ | Accepted | 0 MS | 264 KB | 509 | 2025-06-14 20:43:06 |
#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); cout<<char(a+'A'); int t=b; if(t%2==0)t/=2; cout<<t; cout<<(a+b+c)%10; cout<<d; cout<<('l'+'e'+e)/10%10; cout<<(a+b+c+d+e+f)%10; return 0; }