Job 20377

Owner
Vintur Cristian
Problem
Words
Contest
MindCoding 2017 Final 2
Source
0.97KB
Result
Accepted

Compiler output

prog.cpp: In function 'bool ok(int, int)':
prog.cpp:21:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < words[p].size(); ++i)
                   ^
prog.cpp:24:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i - j + 1 < words[p].size() && exists(p, j, i) && (j == 0 || dp[j - 1]))
                 ^
prog.cpp: At global scope:
prog.cpp:17:20: warning: unused parameter 'n' [-Wunused-parameter]
 bool ok(int p, int n)
                    ^

Results

Test numberResultTime
1Ok0.2515s
2Ok0.2600s
3Ok0.2723s
4Ok0.2996s
5Ok0.2965s
6Ok0.3280s
7Ok0.3969s
8Ok0.2506s
9Ok0.2538s
10Ok0.2532s
11Ok0.2492s
12Ok0.2569s
Questions?

Sponsors Gold