/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:173:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for(int i=0;i<n;i++) gets(sm[i]);
                          ^~~~
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:173:36: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for(int i=0;i<n;i++) gets(sm[i]);
                                    ^
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:220:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                             if (sm[i][j+l] == 'x' && (curArr[j] & 0x1)
                                 ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc:222:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                                 || j >= 1 && (curArr[j] & 0x1) && (curArr[RI] & 0x1)
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/tmp/cca6UJ70.o: In function `main':
foo.cc:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 22ms 2.289 MiB
#2 Accepted 67ms 2.293 MiB
#3 Accepted 148ms 2.293 MiB
#4 Accepted 345ms 2.289 MiB
#5 Accepted 2431ms 2.289 MiB
#6 Accepted 2600ms 2.289 MiB
#7 Accepted 3099ms 2.289 MiB
#8 Accepted 4149ms 2.293 MiB
#9 Accepted 5582ms 2.289 MiB
#10 Time Exceeded ≥7005ms ≥2.203 MiB

信息

递交者
类型
递交
题目
P1581 多米诺骨牌
语言
C++
递交时间
2020-05-03 19:43:36
评测时间
2020-05-03 19:43:36
评测机
分数
90
总耗时
≥25453ms
峰值内存
≥2.293 MiB