关于高精度
  • 板块灌水区
  • 楼主YJY0807qwq
  • 当前回复1
  • 已保存回复1
  • 发布时间2021/10/5 11:14
  • 上次更新2023/11/4 04:47:13
查看原帖
关于高精度
409265
YJY0807qwq楼主2021/10/5 11:14

出现玄学错误,每次都只输出上次算的结果

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ofstream pyf("gaojing.py");
	pyf<<"with open(\".\\\\input.txt\", \"r+\", encoding=\"utf-8\") as f:\n\
	a, b = map(int, f.read().split())\n\
with open(\".\\\\output.txt\", \"w+\", encoding=\"utf-8\") as f:\n\
	f.write(str(a + b))";
	string a, b, ans;
	cin>>a>>b;
	ofstream inf("input.txt");
	inf<<a<<" "<<b;
	system("start python gaojing.py");
	freopen("output.txt", "r", stdin);
	cin>>ans;
	cout<<ans;
}

2021/10/5 11:14
加载中...