#include <stdio.h>
#include <string.h>
void decrypt_caesar(char *ciphertext, int shift) {
int i;
char ch;
for (i = 0; i < len; i++) {
ch = ciphertext[i];
ch = ch - shift;
}
}
int main() {
char ciphertext[] = "mcpciyvcfckicmw";
int shift = 34; // シフト値
decrypt_caesar(ciphertext, shift);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCnZvaWQgZGVjcnlwdF9jYWVzYXIoY2hhciAqY2lwaGVydGV4dCwgaW50IHNoaWZ0KSB7CiAgICBpbnQgaTsKICAgIGNoYXIgY2g7CiAgICBpbnQgbGVuID0gc3RybGVuKGNpcGhlcnRleHQpOwoKICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkrKykgewogICAgICAgIGNoID0gY2lwaGVydGV4dFtpXTsKICAgICAgICBjaCA9IGNoIC0gc2hpZnQ7ICAKICAgICAgICBwcmludGYoIiVjIiwgY2gpOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwp9CgppbnQgbWFpbigpIHsKCiAgICBjaGFyIGNpcGhlcnRleHRbXSA9ICJtY3BjaXl2Y2Zja2ljbXciOwogICAgaW50IHNoaWZ0ID0gMzQ7ICAvLyDjgrfjg5Xjg4jlgKQKCiAgICBwcmludGYoIuW+qeWPt+OBleOCjOOBn+aWh+Wtl+WIlzogIik7CiAgICBkZWNyeXB0X2NhZXNhcihjaXBoZXJ0ZXh0LCBzaGlmdCk7CgogICAgcmV0dXJuIDA7Cn0K