记录详情

Time Exceeded

foo.c: In function 'main':
foo.c:20:20: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   20 |                 if(abs(total)>p/abs((k-1)))
      |                    ^~~
foo.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | 
foo.c:20:24: warning: 'abs' argument 1 type is 'long long int' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   20 |                 if(abs(total)>p/abs((k-1)))
      |                        ^~~~~
<built-in>: note: built-in 'abs' declared here
foo.c:20:39: warning: 'abs' argument 1 type is 'long long int' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   20 |                 if(abs(total)>p/abs((k-1)))
      |                                     ~~^~~
<built-in>: note: built-in 'abs' declared here
foo.c:40:24: warning: 'abs' argument 1 type is 'long long int' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   40 |                 if(abs(total)>p/abs((k-1)))
      |                        ^~~~~
<built-in>: note: built-in 'abs' declared here
foo.c:40:39: warning: 'abs' argument 1 type is 'long long int' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   40 |                 if(abs(total)>p/abs((k-1)))
      |                                     ~~^~~
<built-in>: note: built-in 'abs' declared here
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1101ms ≥284.0 KiB

信息

递交者
类型
自测
题目
P1525 Problem 3C. 彩带染色
语言
C
递交时间
2023-10-27 11:55:04
评测时间
2023-10-27 11:55:04
评测机
分数
0
总耗时
≥1101ms
峰值内存
≥284.0 KiB