Advertisement
Dmaxiya

对拍 .cpp 参考

Mar 28th, 2025
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.     while (true) {
  6.         system("data.exe > test.txt");
  7.         system("right.exe < test.txt > right_ans.txt");
  8.         system("test.exe < test.txt > test_ans.txt");
  9.         if (system("fc right_ans.txt test_ans.txt")) {
  10.             break;
  11.         }
  12.     }
  13.  
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement