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 Syncwithme @ 2021-07-20 11:26:19
哦
by SUITLIE @ 2021-07-21 17:59:22
#include <bits/stdc++.h>
using namespace std;typedef __int128 fk;fk fker1,fker2;
inline fk qread() {fk x = 0, f = 0; char ch = getchar();while (!isdigit(ch)) f |= (ch == '-'), ch = getchar();while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();return f ? -x : x;}
inline fk qput(fk x){if(x<0){putchar('-');x=-1*x;}if(x>9)qput(x/10);putchar(x%10+'0');}
int main(){fker1=qread();fker2=qread();fk ans=fker1+fker2;qput(ans);return 0;}
by rzh123 @ 2021-07-27 11:14:39
这个能过: https://www.luogu.com.cn/record/50699622