/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int IN()':
/in/foo.cc:13:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   13 | while (!isdigit(c=getchar()));x=c-'0';
      | ^~~~~
/in/foo.cc:13:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   13 | while (!isdigit(c=getchar()));x=c-'0';
      |                               ^
/in/foo.cc:14:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   14 | while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return x;
      | ^~~~~
/in/foo.cc:14:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   14 | while (isdigit(c=getchar())) x=(x<<1)+(x<<3)+c-'0';return x;
      |                                                    ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
/in/foo.cc:88:24: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                        ^~~
/in/foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
/in/foo.cc:88:34: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                                  ^~~
/in/foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
/in/foo.cc:88:40: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                                        ^~~
/in/foo.cc:7:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    7 | #define Mid (L+R>>1)
      |              ~^~
/in/foo.cc:88:53: note: in expansion of macro 'Mid'
   88 | while (L<=R) if (Check(Mid)) res=Mid,R=Mid-1;else L=Mid+1;
      |                                                     ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 608.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 788.0 KiB
#5 Accepted 1ms 628.0 KiB
#6 Accepted 11ms 2.543 MiB
#7 Accepted 6ms 1.805 MiB
#8 Accepted 45ms 6.941 MiB
#9 Accepted 659ms 13.215 MiB
#10 Accepted 1ms 536.0 KiB

信息

递交者
类型
递交
题目
P1783 疫情控制
语言
C++
递交时间
2025-12-22 10:06:07
评测时间
2025-12-22 10:06:07
评测机
分数
100
总耗时
731ms
峰值内存
13.215 MiB