Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
315933 黄浙峰老师 【C5-5】简单加密 C++ 通过 100 0 MS 260 KB 326 2025-04-05 13:32:36

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ string p="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string q="VWXYZABCDEFGHIJKLMNOPQRSTU"; string x; int t; getline(cin,x); for(int i=0; i<x.size(); i++){ if(x[i]>='A' && x[i]<='Z'){ t=x[i]-'A'; cout<<q[t]; }else{ cout<<x[i]; } } return 0; }


测评信息: