- Owner
- Kamil DÄbowski
- Problem
- Red Dragon
- Contest
- MindCoding 2016 Round 1 Take Off Labs (Div. 1)
- Source
- 0.95KB
- Result
- Accepted
Compiler output
prog.cpp: In function 'int main()': prog.cpp:39:28: warning: iteration 19u invokes undefined behavior [-Waggressive-loop-optimizations] maxi(ans, t[i] + dp[i][k] - k); ^ prog.cpp:8:27: note: in definition of macro 'maxi' #define maxi(a,b) a=max(a,b) ^ prog.cpp:3:20: note: containing loop #define FOR(i,a,b) for(int i = (a); i <= (b); ++i) ^ prog.cpp:5:17: note: in expansion of macro 'FOR' #define RI(i,n) FOR(i,1,(n)) ^ prog.cpp:33:3: note: in expansion of macro 'RI' RI(k, 20) { ^
Results
Test number Result Time 1 Ok 0.2607s 2 Ok 0.2608s 3 Ok 0.2585s 4 Ok 0.2605s 5 Ok 0.2580s 6 Ok 0.2616s 7 Ok 0.2723s 8 Ok 0.3033s 9 Ok 0.3214s 10 Ok 0.4698s 11 Ok 0.4556s 12 Ok 0.4634s 13 Ok 0.4563s 14 Ok 0.4343s 15 Ok 0.4471s 16 Ok 0.4527s 17 Ok 0.4553s 18 Ok 0.4382s