Job 15218

Owner
Bohdan Pryshchenko
Problem
Lumber Jack and Cycles
Source
2.44KB
Result
Time Limit Exceeded

Compiler output

prog.cpp:33:0: warning: "M_PI" redefined
 #define M_PI 3.141592653589793
 ^
In file included from /usr/include/c++/4.9/cmath:44:0,
                 from /usr/include/c++/4.9/complex:44,
                 from prog.cpp:10:
/usr/include/math.h:372:0: note: this is the location of the previous definition
 # define M_PI  3.14159265358979323846 /* pi */
 ^
prog.cpp: In function 'int solve(int)':
prog.cpp:75:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < g[v].size(); i++)
                     ^
prog.cpp: In function 'int main()':
prog.cpp:136:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < order.size(); i++)
                    ^

Results

Test numberResultTime
1Ok0.2663s
2Ok0.2674s
3Ok0.2692s
4Ok0.2710s
5Ok0.2702s
6Ok0.2845s
7Ok0.2848s
8Ok0.3866s
9Ok0.2736s
10Ok0.5091s
11Ok6.3101s
12Ok0.2978s
13Ok4.9225s
14Ok7.8534s
15Ok0.3102s
16Ok1.2521s
17Ok0.5321s
18Ok0.4685s
19Ok0.6698s
20Ok2.2243s
21Ok0.2672s
22Ok0.2666s
23Ok0.2735s
24Ok0.2731s
25Ok0.3610s
26Ok1.1987s
27Ok3.1339s
28Ok8.8613s
29Time Limit Exceeded15.2544s
Questions?

Sponsors Gold