/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int IN()':
/in/foo.cc:26:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (!isdigit(c=getchar()));x=c-'0';
  ^~~~~
/in/foo.cc:26:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while (!isdigit(c=getchar()));x=c-'0';
                                ^
/in/foo.cc:27:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return x;
  ^~~~~
/in/foo.cc:27:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return x;
                                                     ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define Mid (L+R>>1)
              ~^~
/in/foo.cc:92:25: note: in expansion of macro 'Mid'
  while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
                         ^~~
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define Mid (L+R>>1)
              ~^~
/in/foo.cc:92:35: note: in expansion of macro 'Mid'
  while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
                                   ^~~
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define Mid (L+R>>1)
              ~^~
/in/foo.cc:92:41: note: in expansion of macro 'Mid'
  while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
                                         ^~~
/in/foo.cc:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define Mid (L+R>>1)
              ~^~
/in/foo.cc:92:54: note: in expansion of macro 'Mid'
  while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
                                                      ^~~
# 状态 耗时 内存占用
#1 Accepted 4ms 6.25 MiB
#2 Accepted 2ms 6.25 MiB
#3 Accepted 3ms 6.32 MiB
#4 Accepted 2ms 6.375 MiB
#5 Accepted 2ms 6.375 MiB
#6 Accepted 12ms 7.539 MiB
#7 Accepted 11ms 5.125 MiB
#8 Accepted 46ms 12.922 MiB
#9 Accepted 548ms 13.105 MiB
#10 Accepted 2ms 6.336 MiB

信息

递交者
类型
递交
题目
P1783 疫情控制
语言
C++
递交时间
2017-08-10 08:51:12
评测时间
2017-08-10 08:51:12
评测机
分数
100
总耗时
636ms
峰值内存
13.105 MiB