标签:rev iostream 题意 i++ name challenge pac strlen imageview
Training: Crypto - Caesar I (Crypto, Training)
Crypto - Caesar I
As on most challenge sites, there are some beginner cryptos, and often you get started with the good old caesar cipher.
I welcome you to the WeChall style of these training challenges :)
Enjoy!
KYV HLZTB SIFNE WFO ALDGJ FMVI KYV CRQP UFX FW TRVJRI REU PFLI LEZHLV JFCLKZFE ZJ GSUESTWZREVX
#include <iostream>
using namespace std;
int main()
{
char str[]="KYV HLZTB SIFNE WFO ALDGJ FMVI KYV CRQP UFX FW TRVJRI REU PFLI LEZHLV JFCLKZFE ZJ GSUESTWZREVX";
for(int j=0;j<26;j++)
{
for(int i=0;i<strlen(str);i++)
{
cout<<(char)((str[i]-‘A‘+j)%26+‘A‘);
}
cout<<endl;
}
return 0;
}
注:每次刷新题目后所给的凯撒密码都不同 所以所得flag也将会不同
[WeChall] Training: Crypto - Caesar I (Crypto, Training)
标签:rev iostream 题意 i++ name challenge pac strlen imageview
原文地址:https://www.cnblogs.com/xiaomulei/p/10113966.html