Job 12829

Owner
Andrei Grigorean
Problem
LCM
Source
1.14KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'void check_solution(int)':
prog.cpp:36:77: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (best_lcm == -1 || current_lcm < best_lcm || current_lcm == best_lcm && n < best_n) {
                                                                             ^

Results

Test numberResultTime
1Ok0.5640s
2Ok0.6767s
3Ok0.6641s
4Ok0.6593s
5Ok0.6663s
6Ok0.5678s
7Ok0.7136s
8Ok0.6678s
9Ok0.6541s
10Ok0.6783s
11Ok0.6591s
12Ok0.6603s
13Ok0.6632s
14Wrong answer0.7266s
Questions?

Sponsors Gold