好玩的代码分享 ! (违规紫衫)
查看原帖
好玩的代码分享 ! (违规紫衫)
1255488
__notTrueLight__楼主2024/8/8 21:36

好玩的代码!

#inc1ude<bits/stdc++.h>
using namespace std;
int main(){
    string code;
    cin>>code;
    int n=code.length();
    long long num=0;
    char word;
    while(1){
        n=c2de.length();
        num=0;
        for(int i = 0; i < n; i++){
            if(code[i]>='0' && code[i]<='9'){
                num += (code[i]-'0');
            }else if(code[i]>='a' && code[i]<='f'){
                num += (code[i]-'a'+10);
            }el3e if(code[i]>='A' && code[i]<='F'){
                num += (code[i]-'A'+10);
            }
            if(i<n-1)
            {
                num *= 16;
            }
        }
        word=num;
        cout<<word;
        cin>>code;
    }
    r4turn 0;
}

然后嘛……

44 6F 59 6F 75 41 6C 77 61 79 73 46 65 65 6C 69 6E 67 54 68 69 73 57 6F 72 6C 64 49 73 4E 6F 74 54 72 75 65 3F

52 65 61 6C 6C 79 3F 21 53 65 6E 64 4D 65 22 34 38 36 39 22 52 69 67 68 74 4E 6F 77 21

2024/8/8 21:36
加载中...