fork download
  1. #include <bits/stdc++.h>
  2. #include <ext/pb_ds/assoc_container.hpp>
  3. using namespace __gnu_pbds;
  4. #define FAST ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
  5. #define ll long long
  6. #define ld long double
  7. #define int long long
  8. #define endl "\n"
  9. #define yes cout << "YES" << endl;
  10. #define no cout << "NO" << endl;
  11. #define pb push_back
  12.  
  13. using namespace std;
  14. const int MOD = 1e9+7;
  15. //const int MOD = 998244353;
  16. const int N = 1e5+5;
  17. const ll INF = 1e18;
  18. const ll MIN = -1e18;
  19.  
  20. typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
  21.  
  22. void solve(int t) {
  23. string filename = "output" + to_string(t) + ".txt";
  24. freopen(filename.c_str(), "w", stdout); // Convert string to C-style string
  25. cout << "Processing test case: " << t << endl;
  26. fclose(stdout); // Close the file to restore standard output
  27. }
  28.  
  29. signed main() {
  30. FAST;
  31. ll t = 100;
  32. while (t--) solve(t);
  33. }
  34.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty