/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:30:13: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
   30 |  printf("%lld",ans);
      |          ~~~^  ~~~
      |             |  |
      |             |  int
      |             long long int
      |          %d
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d\n",&n);
      |  ~~~~~^~~~~~~~~~~
foo.cc:8:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  for(int i=1;i<=n;i++)scanf("%c",&s),a[i]=s=='L'?-1:1;
      |                       ~~~~~^~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 248.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 264.0 KiB
#8 Wrong Answer Read 4386, expect 3. 4ms 500.0 KiB
#9 Wrong Answer Read 3359, expect 2. 3ms 384.0 KiB
#10 Wrong Answer Read 1324, expect 3. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1413 争执
题目数据
下载
语言
C++
递交时间
2022-07-27 15:52:16
评测时间
2022-07-27 15:52:16
评测机
分数
70
总耗时
23ms
峰值内存
500.0 KiB