acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • 题解

    userId_undefined

    ༺ཌༀཉི郑则则༃ༀད༻

    题解仙人时空双修者倔强青铜维度操控者ASCII炼金师模拟·模拟练习生
    3阅读
    0回复
    1点赞
  • 题解

    #include<iostream> #include<cstring> using namespace std; char a[110]; int n; int main(){ cin>>n>>a; for(int i=0;i<strlen(a);i++){ if(a[i]+n%26<='z'){ a[i]+=n%26; cout<<a[i]; } else{ a[i]+=n%26; a[i]-=26; cout<<a[i]; } } return 0; }

    userId_undefined

    ༺ཌༀཉི郑则则༃ༀད༻

    题解仙人时空双修者倔强青铜维度操控者ASCII炼金师模拟·模拟练习生
    1阅读
    0回复
    1点赞
  • 题解

    #include<iostream> #include<cstring> using namespace std; int main(){ int n; char a[110]={}; cin>>n>>a; for(int i=0;i<strlen(a);i++){ if(a[i]+n%26>'z'){ a[i]-=26-n%26; } else{ a[i]+=n%26; } } cout<<a<<endl; return 0; }

    userId_undefined

    小桂子GUINEVERE

    时空双修者出道萌新荣耀黄金
    122阅读
    2回复
    1点赞
  • 题解

    userId_undefined

    zsy

    题解仙人时空双修者BUG超度大师秩序白银快乐小狗
    58阅读
    0回复
    1点赞
  • 题解

    #include<bits/stdc++.h> using namespace std; char s[100086]; long long a=0,b; int main() { cin>>a; cin>>s; int n = strlen(s); for(int i=0;i<n;i++){ b=(s[i]-'a'+a)%26; s[i]='a'+b; } cout<<s; return 0; }

    userId_undefined

    ???

    空间掌握者题解仙人字符串·魔法使出道萌新GESP3级模拟·模拟练习生
    14阅读
    0回复
    0点赞
  • dddd

    #include <bits/stdc++.h> using namespace std; int main(){ int n; string a; cin>>n>>a; for(int i=0;i<a.size();i++){ if(a[i]>='z'-n+1){ a[i]=(abs('z'-(a[i]+n))-1)%26; a[i]+='a'; cout<<a[i]; }else{ a[i]+=n; cout<<a[i]; } } return 0; }

    userId_undefined

    AC!gogogo

    空间掌握者递归·套娃学徒贪心·贪心尝试者倔强青铜模拟·模拟练习生字符串·魔法使
    0阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页