/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   30 |         scanf("%d",&n);
      |                ~^  ~~
      |                 |  |
      |                 |  long long int*
      |                 int*
      |                %lld
/in/foo.cc:31:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   31 |         for(int i=1;i<=n;i++)scanf("%d",&num1[i]),idx1[i]=i;
      |                                     ~^  ~~~~~~~~
      |                                      |  |
      |                                      |  long long int*
      |                                      int*
      |                                     %lld
/in/foo.cc:32:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   32 |         for(int i=1;i<=n;i++)scanf("%d",&num2[i]),idx2[i]=i;
      |                                     ~^  ~~~~~~~~
      |                                      |  |
      |                                      |  long long int*
      |                                      int*
      |                                     %lld
# 状态 耗时 内存占用
#1 Accepted 1ms 528.0 KiB
#2 Accepted 1ms 528.0 KiB
#3 Accepted 1ms 488.0 KiB
#4 Accepted 1ms 560.0 KiB
#5 Accepted 2ms 616.0 KiB
#6 Accepted 3ms 704.0 KiB
#7 Accepted 6ms 864.0 KiB
#8 Accepted 10ms 1.461 MiB
#9 Accepted 25ms 2.836 MiB
#10 Accepted 52ms 5.113 MiB

信息

递交者
类型
递交
题目
P1842 火柴排队
语言
C++
递交时间
2026-03-20 14:18:26
评测时间
2026-03-24 02:15:57
评测机
分数
100
总耗时
108ms
峰值内存
5.113 MiB