[关闭]
@zzzc18 2017-12-17T05:48:16.000000Z 字数 553 阅读 927

出数据利器

AtCoder


  1. #include<windows.h>
  2. #include<sstream>
  3. #include<iostream>
  4. #include<cstdio>
  5. #include<string>
  6. using namespace std;
  7. string FILENAME,DATA,STD;
  8. string INPUT;
  9. string OUTPUT;
  10. string NUM;
  11. string LEFT,RIGHT;
  12. int main(){
  13. FILENAME="parking";LEFT="<";RIGHT=">";
  14. INPUT=".in";OUTPUT=".out";DATA="data";STD="std";
  15. system("g++ data.cpp -o data");
  16. system("g++ std.cpp -o std");
  17. for(int i=1;i<=10;i++){
  18. stringstream ss;
  19. ss<<i;
  20. ss>>NUM;
  21. cout<<NUM<<endl;
  22. system((DATA+RIGHT+FILENAME+NUM+INPUT).c_str());
  23. system((STD+LEFT+FILENAME+NUM+INPUT+RIGHT+FILENAME+NUM+OUTPUT).c_str());
  24. Sleep(2*1000);
  25. }
  26. return 0;
  27. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注