Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159140 谭鑫哲 11加密规则 C++ Accepted 1 MS 268 KB 609 2026-08-26 09:23:37

Tests(10/10):


Code:

#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 q,w1,w2,w3,w4,w5,w6,h; cin>>q; w1=q/100000; w2=q/10000%10; w3=q/1000%10; w4=q/100%10; w5=q/10%10; w6=q%10; w6=w1+w2+w3+w4+w5+w6; w3=(w1+w2+w3)%10; cout<<char(65+w1); if(w2%2==0){ w2/=2; } cout<<w2<<w3<<w4; cout<<int('l'+'e'+w5)/10%10; cout<<w6%10; return 0; }