Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72968 陈昊然 11加密规则 C++ Accepted 1 MS 276 KB 315 2024-05-14 20:12:25

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c,d,e,f; cin>>a>>b>>c>>d>>e>>f; f=(a-48+b-48+c-48+d-48+e-48+f-48)%10; c=(a-48+c-48+b-48)%10; a=a+17; if((b-48)%2==0){ b=(b-48)/2+48; }else{ b=b; } e=(108+101+e-48)/10%10; cout<<a<<b<<c+0<<d-48<<e+0<<f+0; return 0; }