Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8182 赖梓乐 11加密规则 C++ Wrong Answer 0 MS 256 KB 535 2025-06-14 20:49:04

Tests(0/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 a,s,d,f,g,h,z; scanf("%1d%1d%1d%1d%1d%1d",&a,&s,&d,&f,&g,&h); char q='l',w='e'; d=(a+s+d)%10; h=(a+s+d+f+g+h)%10; if(s%2==0) s=s/2; d=d%10; g=(101+108+g)/10%10; cout<<char(a+'A')<<s<<d<<f<<g<<h; return 0; }


Run Info:

------Input------
119519
------Answer-----
B11516
------Your output-----
B11518