/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:37:44: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   37 |             (num[i] == num[j]) && (ans = i + j >> 1);
      |                                          ~~^~~
/in/foo.cc:29:15: warning: unused variable 'z' [-Wunused-variable]
   29 |     int i, j, z, now, next;
      |               ^
/in/foo.cc:29:18: warning: unused variable 'now' [-Wunused-variable]
   29 |     int i, j, z, now, next;
      |                  ^~~
/in/foo.cc:29:23: warning: unused variable 'next' [-Wunused-variable]
   29 |     int i, j, z, now, next;
      |                       ^~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 2ms 528.0 KiB
#3 Accepted 2ms 476.0 KiB
#4 Accepted 2ms 356.0 KiB
#5 Accepted 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1380 盗窃-巴黎阳光普照
语言
C++
递交时间
2025-02-14 15:03:30
评测时间
2025-02-14 15:03:30
评测机
分数
100
总耗时
11ms
峰值内存
536.0 KiB