当前位置:网站首页>Daily question, Caesar code,
Daily question, Caesar code,
2022-06-25 14:50:00 【䨁 逦】
Background
A konjac is infatuated with “ Little bookboy ”, I forgot my password when I logged in one day ( He doesn't have a mailbox or mobile phone ), So I left the problem to you .
Title Description
Although konjac forgets the password , But he remembered that the password was composed of a string . The password consists of the original string ( By no more than 50 Small letters make up ) Move each letter in the back nn Bit formed .z The next letter of is a, So circular . He now finds the original string and nn, Please find out the password .
Input format
first line :n. The second line : A string of letters before moving
Output format
a line , This is the password for this konjac
I/o sample
Input #1 Copy
1 qwe
Output #1 Copy
rxf
explain / Tips
String length <=50
#include<stdio.h>
#include<string.h>
char a[55];
int main(){
int n=0;
scanf("%d",&n);
getchar();
scanf("%s",a);
for(int i=0;a[i]!='\0';i++)
{
a[i]=(a[i]-'a'+n)%26+'a';
}
puts(a);
return 0;
}
边栏推荐
- Yolov3 spp Darknet version to caffemodel and then to OM model
- Kubernetes understands kubectl/ debugging
- C language LNK2019 unresolved external symbols_ Main error
- QT database connection
- Usage of qlist
- 2022年广东高考分数线出炉,一个几家欢喜几家愁
- dmsetup命令
- QT inline dialog
- Haven't you understood the microservice data architecture transaction management +acid+ consistency +cap+base theory? After reading it, you can completely solve your doubts
- Supplementary inheritance and strict mode
猜你喜欢

Add the resources directory under test in idea

15 -- 最接近原点的 K 个点

Share the code technology points and software usage of socket multi client communication

TSDB在民机行业中的应用

Jaspersoft studio installation

【Try to Hack】vulnhub DC1

Report on Hezhou air32f103cbt6 development board

Uniapp cloud packaging app

Using Sphinx to automatically generate API documents from py source files

oracle数据库常用的函数总结
随机推荐
[try to hack] vulhub shooting range construction
Flexible layout (display:flex;) Attribute details
Kubernetes understands kubectl/ debugging
How to view the Chrome browser plug-in location
About the problem of kicad stuck in win10 version, version 6 x
Gif动图如何裁剪?收下这个图片在线裁剪工具
Kubernetes 理解kubectl/调试
【中國海洋大學】考研初試複試資料分享
QT inline dialog
Function of getinstance() method
Customization and encapsulation of go language zap library logger
Encapsulating functions and event handling
HMS Core机器学习服务实现同声传译,支持中英文互译和多种音色语音播报
【Try to Hack】vulnhub DC1
Let and const commands
【Try to Hack】vulhub靶场搭建
One time summary: 64 common terms for data analysis!
JS functions
dmsetup命令
Clipboard tutorial