/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:16:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();x*=f;
  ^~~~~
/in/foo.cc:16:59: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while (isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();x*=f;
                                                           ^
/in/foo.cc: In function 'long long int sum(int, int, int, int, int)':
/in/foo.cc:21:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;ll res=0;
          ~^~
/in/foo.cc:22:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (x<=mid) res+=sum(u<<1,l,mid,x,y);if (y>mid) res+=sum(u<<1|1,mid+1,r,x,y);
  ^~
/in/foo.cc:22:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (x<=mid) res+=sum(u<<1,l,mid,x,y);if (y>mid) res+=sum(u<<1|1,mid+1,r,x,y);
                                       ^~
/in/foo.cc: In function 'void ins(int, int, int, int, int)':
/in/foo.cc:28:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
# 状态 耗时 内存占用
#1 Accepted 2ms 380.0 KiB
#2 Accepted 2ms 376.0 KiB
#3 Accepted 2ms 368.0 KiB
#4 Accepted 4ms 536.0 KiB
#5 Accepted 4ms 580.0 KiB
#6 Accepted 4ms 592.0 KiB
#7 Accepted 4ms 584.0 KiB
#8 Accepted 3ms 588.0 KiB
#9 Accepted 89ms 5.941 MiB
#10 Accepted 101ms 5.945 MiB
#11 Accepted 92ms 5.934 MiB
#12 Accepted 105ms 5.941 MiB
#13 Accepted 94ms 5.926 MiB
#14 Accepted 105ms 5.945 MiB
#15 Accepted 96ms 5.941 MiB
#16 Accepted 105ms 5.934 MiB
#17 Accepted 98ms 5.941 MiB
#18 Accepted 116ms 5.941 MiB
#19 Accepted 99ms 5.941 MiB
#20 Accepted 101ms 5.844 MiB

信息

递交者
类型
递交
题目
P2594 农夫约翰合牛国
语言
C++
递交时间
2023-03-08 22:03:15
评测时间
2023-03-08 22:03:15
评测机
分数
100
总耗时
1236ms
峰值内存
5.945 MiB