20分QAQ

P1914 小书童——凯撒密码

Frozen1949 @ 2019-10-23 08:57:54

include<stdio.h>

int main() { int n; scanf_s("%d\n", &n); char m; for (int i = 0; i < 55; i++) { m = getchar(); if (m == 10) { break; } else { m += n; if (m > 'z') { m = m % 'z' + 'a'-1; } printf("%c", m); } } return 0; }


by Inkyo @ 2019-10-23 09:11:17

@Frozen1949

请仔细阅读后再发帖


by nth_element @ 2019-10-23 09:11:47

不要用MD强调头文件的重要,请您学会MD再发帖,谢谢


|