Job 16558

Owner
Petru Trîmbițaș
Problem
Permudrome
Source
1.27KB
Result
Time Limit Exceeded

Compiler output

prog.cpp: In function 'int clc(int, int)':
prog.cpp:21:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(p==s.size()/2) return 1;
       ^
prog.cpp: In function 'int main()':
prog.cpp:44:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0; i<s.size(); ++i) ++fr[s[i]-'a'];
                 ^
prog.cpp:60:36: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(int i=0; i<26; ++i) if(!fb[cm][i] && fr[i] && (nri==1 || (nri==0 && !fb[i][i]))) {
                                    ^

Results

Test numberResultTime
1Ok1.2929s
2Ok0.2564s
3Ok0.2590s
4Ok0.2584s
5Ok0.2566s
6Ok0.2576s
7Ok0.2660s
8Ok0.2618s
9Ok0.2587s
10Ok0.2604s
11Ok0.2590s
12Time Limit Exceeded2.2534s
Questions?

Sponsors Gold