| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133058 | 周宸宇 | 11加密规则 | C++ | Accepted | 1 MS | 272 KB | 607 | 2025-10-13 19:40: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,n,b2,f2,c2; cin>>n; a=n/100000; b=n%100000/10000; c=n%10000/1000; d=n%1000/100; e=n%100/10; f=n%10; if(b%2==0){ b2=b/2; } else{ b2=b; } c2=(a+b+c)%10; f2=(a+b+c+d+e+f)%10; cout<<char(a+65)<<b2<<c2<<d<<(e+'l'+'e')/10%10<<f2; return 0; }