Ãè¡¡¡¡Êö: ͻȻÌìÉÏÒ»µÀÀ×µç gndk€rlqhmtkwwp}z ½âÌâ¹ý³Ì: g n d k r l q h m t k w w p } z 103 110 100 107 114 108 113 104 109 116 107 119 119 112 125 122
f l a g 102 108 97 103
¹æÂÉ:¼õÉÙ1,2,3,4,5,¡
f l a g 102 108 97 103
±àдCÓïÑÔ/Java/Python½Å±¾(·ÅÔÚ×îºó) µÃµ½ASCIIÂë,ת»»ºóÌá½»³ö´í ·¢ÏÖ±»ÉÁµçÅü¿ªgndk€rlqhmtkwwp}z,€Ò²Õ¼Ò»Î» ËùÒÔ€ÒÔºóµÄÐè¶à¼õһλ ×îºóµÃµ½flagΪflag{lei_ci_jiami}
CÓïÑÔ
#include<stdio.h>
#include<string.h>
int main()
{
char am[]="gndkrlqhmtkwwp}z";
int i=0,j=1;
for(i=0;i<strlen(am);i++)
{
printf("%d ",am[i]);
}
printf("\n");
for(i=0;i<strlen(am);i++,j++)
{
printf("%d ",am[i]=am[i]-j,am[i]=am[i]-j);
}
printf("\n");
return 0;
}
Java
public class HelloWorld {
public static void main(String []args) {
String a="gndk€rlqhmtkwwp}z";
int j = 1;
char am=' ';
for(int i = 0;i<a.length();i++,j++){
am=(char)(a.charAt(i)-j);
System.out.println(am);
}
}
}
Python
am = "gndk"
am1 = "rlqhmtkwwp}z"
for i in range(len(am)):
print(chr(ord(am[i])-i-1),end='')
for i in range(len(am1)):
print(chr(ord(am1[i])-i-6),end='')
|