/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:27:53: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
  for (int i=1; i<=n; i++) scanf("%ld%ld",&p[i],&w[i]);
                                                     ^
/in/foo.cc:27:53: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:33:53: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
  if (f[1][n][0]<=f[1][n][1]) printf("%ld",f[1][n][0]);
                                                     ^
/in/foo.cc:34:30: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
  else printf("%ld",f[1][n][1]);
                              ^
# 状态 耗时 内存占用
#1 Accepted 2ms 352.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Wrong Answer 1ms 224.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 2ms 220.0 KiB
#6 Wrong Answer 2ms 228.0 KiB
#7 Wrong Answer 1ms 220.0 KiB
#8 Accepted 1ms 228.0 KiB
#9 Accepted 1ms 224.0 KiB
#10 Wrong Answer 1ms 232.0 KiB

信息

递交者
类型
递交
题目
P1150 关路灯
语言
C++
递交时间
2020-05-18 22:28:19
评测时间
2020-05-18 22:28:19
评测机
分数
60
总耗时
19ms
峰值内存
352.0 KiB