Job 16309

Owner
Oncescu Costin Andrei
Problem
Permudrome
Contest
MindCoding 2016 Round 4 (Div. 1)
Source
2.27KB
Result
Time Limit Exceeded

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:24:1: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
 gets (sir + 1), N = strlen (sir + 1), mod = 666013;
 ^
prog.cpp:24:14: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
 gets (sir + 1), N = strlen (sir + 1), mod = 666013;
              ^
prog.cpp:31:29: warning: array subscript has type 'char' [-Wchar-subscripts]
     sir[i] -= 'a', ap[sir[i]] ++;
                             ^
prog.cpp:37:11: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
           ^
prog.cpp:37:15: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
               ^
prog.cpp:37:25: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
                         ^
prog.cpp:37:29: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
                             ^
/tmp/ccqno7Qk.o: In function `main':
prog.cpp:(.text.startup+0x16): warning: the `gets' function is dangerous and should not be used.

Results

Test numberResultTime
1Ok1.2708s
2Ok0.5800s
3Ok0.5791s
4Ok0.5871s
5Ok0.5878s
6Ok0.5912s
7Ok0.6021s
8Ok0.5957s
9Ok0.5808s
10Ok0.5732s
11Ok0.6071s
12Time Limit Exceeded2.2769s
Questions?

Sponsors Gold