Job 12693

Owner
Andrei Grigorean
Problem
LCM
Contest
MindCoding 2016 Test Round (Div. 1)
Source
0.93KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'void check_solution(int)':
prog.cpp:24: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.5961s
2Ok0.7117s
3Ok0.6435s
4Ok0.6509s
5Ok0.5394s
6Ok0.7074s
7Ok0.7668s
8Ok0.8773s
9Ok0.7278s
10Ok0.7826s
11Ok0.6056s
12Ok0.8143s
13Ok0.7407s
14Wrong answer0.6840s
Questions?

Sponsors Gold