Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98900 | 高楷伦 | 11加密规则 | C++ | Accepted | 1 MS | 276 KB | 585 | 2024-11-23 17:28:17 |
#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,b1,c1,d1,e1,f1; char a1; scanf("%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f); a1=a+65; if(b%2==0){ b1=b/2; } else{ b1=b+0; } c1=(a+b+c)%10; d1=d+0; e1=(e+'l'+'e')%100/10; f1=(a+b+c+d+e+f)%100%10; cout<<a1<<b1<<c1<<d1<<e1<<f1; return 0; }