/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void Print(char*)':
/in/foo.cc:7:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (long i = 0; i < strlen(str); i++) {
                   ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void Replace(const char*, const char*, const char*, char*)':
/in/foo.cc:14:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (long i = pos1; i < len1 - strlen(strstr(src + pos1, sch)); i++) des[pos2++] = src[i];
                       ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (long i = 0; i < strlen(s); i++) {
                    ~~^~~~~~~~~~~
/in/foo.cc:39:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (long i = m - 1; i < strlen(s); i++) tmp[(long)fabs(n - m) - 1 + (i - m + 1)] = s[i];
                         ~~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 500.0 KiB
#2 Accepted 3ms 476.0 KiB
#3 Accepted 3ms 336.0 KiB
#4 Accepted 2ms 340.0 KiB
#5 Accepted 2ms 504.0 KiB
#6 Accepted 2ms 484.0 KiB
#7 Accepted 2ms 504.0 KiB
#8 Accepted 3ms 476.0 KiB
#9 Accepted 2ms 340.0 KiB
#10 Accepted 2ms 488.0 KiB
#11 Accepted 3ms 336.0 KiB
#12 Accepted 3ms 340.0 KiB
#13 Accepted 3ms 384.0 KiB
#14 Accepted 2ms 468.0 KiB
#15 Accepted 3ms 488.0 KiB
#16 Accepted 4ms 548.0 KiB
#17 Accepted 3ms 340.0 KiB
#18 Accepted 2ms 336.0 KiB
#19 Accepted 3ms 336.0 KiB
#20 Accepted 2ms 340.0 KiB

信息

递交者
类型
递交
题目
P1405 古韵之同心锁
语言
C++
递交时间
2019-02-02 21:45:51
评测时间
2019-02-03 04:14:38
评测机
分数
100
总耗时
61ms
峰值内存
548.0 KiB