/ CWOI /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:33:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d",&a[i]);
                   ^
/in/foo.cc:39:8: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   mid=l+r>>1;
       ~^~
/in/foo.cc:29:20: warning: unused variable 'ans' [-Wunused-variable]
  int r=0,l=1e9,mid,ans;
                    ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 380.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 328.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 4ms 472.0 KiB
#7 Accepted 13ms 640.0 KiB
#8 Accepted 20ms 896.0 KiB
#9 Accepted 14ms 1.082 MiB
#10 Accepted 16ms 1.102 MiB

信息

递交者
类型
递交
题目
2017.07.03 P2 巧克力
语言
C++
递交时间
2017-07-25 19:08:12
评测时间
2017-07-25 19:08:12
评测机
分数
200
总耗时
82ms
峰值内存
1.102 MiB