Submission #1098255

#TimeUsernameProblemLanguageResultExecution timeMemory
1098255vjudge1Meetings 2 (JOI21_meetings2)C++17
0 / 100
0 ms348 KiB
// #pragma GCC optimize("O3","unroll-loops") #include <bits/stdc++.h> using namespace std; // #define #define int long long #define all(v) v.begin(), v.end() #define fi first #define se second #define file "file" #define bit(x, y) ((y >> x) & 1) #define __lcm(a, b) a * b / __gcd(a, b) #define coutf(x) cout << fixed << setprecision(x) #define inter(a) cout << a << "\n"; fflush(stdout) mt19937_64 rnd(chrono::high_resolution_clock::now().time_since_epoch().count()); // declare void Solve() { cout << 1 << "\n" << 4 << "\n" << 1 << "\n" << 2 << "\n" << 1; } signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); if (fopen(file ".inp", "r")) { freopen (file ".inp", "r", stdin); freopen (file ".out", "w", stdout); } int t = 1; // cin >> t; while (t--) Solve(); cerr << "\nTIME: " << 1000 * clock() / CLOCKS_PER_SEC << "ms."; }

Compilation message (stderr)

meetings2.cpp: In function 'int main()':
meetings2.cpp:30:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   30 |         freopen (file ".inp", "r", stdin);
      |         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
meetings2.cpp:31:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   31 |         freopen (file ".out", "w", stdout);
      |         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...