/ XMU_ACM /

记录详情

Accepted

/in/foo.cc: In function 'void build(long long int, long long int, long long int)':
/in/foo.cc:37:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
/in/foo.cc: In function 'long long int querygcd(long long int, long long int, long long int)':
/in/foo.cc:61:44: warning: unused variable 'ans' [-Wunused-variable]
     int mid = (tree[p].l + tree[p].r) >> 1,ans = 1;
                                            ^~~
/in/foo.cc: In function 'long long int querysum(long long int, long long int, long long int)':
/in/foo.cc:71:44: warning: unused variable 'ans' [-Wunused-variable]
     int mid = (tree[p].l + tree[p].r) >> 1,ans = 0;
                                            ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB

信息

递交者
类型
自测
题目
P1070 线段树模板题
语言
C++
递交时间
2021-01-03 19:16:51
评测时间
2021-01-03 19:16:51
评测机
分数
10
总耗时
1ms
峰值内存
204.0 KiB