记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:12:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
   12 |     scanf("%ld", &a[i]);
      |            ~~^   ~~~~~
      |              |   |
      |              |   long long int*
      |              long int*
      |            %lld
foo.cc:31:13: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
   31 |   printf("%ld", num);
      |           ~~^   ~~~
      |             |   |
      |             |   long long int
      |             long int
      |           %lld
foo.cc:8:18: warning: unused variable 'm' [-Wunused-variable]
    8 |  int i, j, k, n, m;
      |                  ^
foo.cc:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |   scanf("%d%d", &n, &k);
      |   ~~~~~^~~~~~~~~~~~~~~~
foo.cc:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 |     scanf("%ld", &a[i]);
      |     ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 5ms 384.0 KiB
#3 Accepted 154ms 512.0 KiB
#4 Accepted 151ms 512.0 KiB
#5 Time Exceeded ≥1101ms ≥7.992 MiB
#6 Time Exceeded ≥1100ms ≥7.996 MiB

信息

递交者
类型
递交
题目
P1306 C. Multiple of k
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2021-12-23 18:04:43
评测时间
2021-12-23 18:04:43
评测机
分数
120
总耗时
≥2517ms
峰值内存
≥7.996 MiB