最骚A+B

P1001 A+B Problem

Syncwithme @ 2021-07-20 08:09:00

#include <bits/stdc++.h>
using namespace std ;
int execmd(const char* cmd,char* result) {
    char buffer[1000000]; 
    FILE* pipe = _popen(cmd, "r"); 
    if (!pipe)
    return 0; 
    while(!feof(pipe)) {
        if(fgets(buffer, 128, pipe)){ 
        strcat(result,buffer);
        }
    }
    _pclose(pipe);
    return 1; 
}
int main(){
    char result[ 1024* 4]= "";
    string a, b;
    cin >> a >> b;
    string ans = "powershell ";   //直接调用powershell进行加法
    ans += a + "*" + b;
    if( 1==execmd(ans.data(),result)){
    printf(result);
    }
    system( "pause"); 
}

by Froranzen @ 2021-07-20 08:10:34


by Khaleesi @ 2021-07-20 08:10:36

小学老师告诉你:这是写A"+"B


by Syncwithme @ 2021-07-20 08:10:45

完了,写成a*b了 把这里改成'+'即可

ans += a + "*" + b;

by TheEin @ 2021-07-20 08:11:04

powershell是什么函数? 求dalao解答


by galfth @ 2021-07-20 08:14:03


by galfth @ 2021-07-20 08:15:00

话说这些A+B的毒瘤代码已经有人发过了吧


by LIETLAW @ 2021-07-20 08:15:14


by _l_l_ @ 2021-07-20 08:15:54


by 紪絽 @ 2021-07-20 08:16:26

哇 好厉害(棒读)


by 添哥 @ 2021-07-20 08:17:40

#include<bits/stdc++.h>
using namespace std;
typedef int -;
typedef main() --;
typedef { ---;
typedef a,b ----;
typedef ; -----;
typedef cin<< ------;
typedef a<<b -------;
typedef cout<< --------;
typedef a+b ---------;
typedef return ----------;
typedef 0 -----------;
typedef } ------------;
- --
---
    - ---- -----
    ------ ------- -----
    -------- --------- -----
    ---------- ----------- -----
------------

您不觉得这个更骚吗?


| 下一页