/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int times(long long unsigned int, int)':
/in/foo.cc:30:46: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
   30 |         return (((X >> ((N << 1) - (i << 1)) - 1) & 1) << 1) + ((X >> (N << 1) - (i << 1) - 2) & 1);
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~~
/in/foo.cc:30:91: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
   30 |         return (((X >> ((N << 1) - (i << 1)) - 1) & 1) << 1) + ((X >> (N << 1) - (i << 1) - 2) & 1);
      |                                                                       ~~~~~~~~~~~~~~~~~~~~^~~
# 状态 耗时 内存占用
#1 Accepted 36ms 532.0 KiB
#2 Accepted 54ms 528.0 KiB
#3 Accepted 29ms 524.0 KiB
#4 Accepted 44ms 536.0 KiB
#5 Accepted 74ms 536.0 KiB
#6 Accepted 92ms 532.0 KiB
#7 Accepted 41ms 540.0 KiB
#8 Accepted 54ms 532.0 KiB
#9 Accepted 33ms 528.0 KiB
#10 Accepted 17ms 536.0 KiB

信息

递交者
类型
递交
题目
P1016 北京2008的挂钟
语言
C++
递交时间
2025-02-19 21:49:58
评测时间
2025-02-19 21:49:58
评测机
分数
100
总耗时
478ms
峰值内存
540.0 KiB