/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int times(long long unsigned int, int)':
/in/foo.cc:30:38: 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:83: 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 44ms 528.0 KiB
#2 Accepted 64ms 532.0 KiB
#3 Accepted 31ms 528.0 KiB
#4 Accepted 47ms 532.0 KiB
#5 Accepted 81ms 532.0 KiB
#6 Accepted 99ms 532.0 KiB
#7 Accepted 44ms 532.0 KiB
#8 Accepted 57ms 532.0 KiB
#9 Accepted 35ms 540.0 KiB
#10 Accepted 18ms 532.0 KiB

信息

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