记录详情

Runtime Error

foo.c: In function 'main':
foo.c:21:30: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   21 |                 hash[j]+=min(abs(j-a[i]),abs(26-abs(j-a[i])));
      |                              ^~~
foo.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | 
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 1ms 284.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB
#6 Accepted 2ms 284.0 KiB
#7 Accepted 1ms 284.0 KiB
#8 Accepted 2ms 284.0 KiB
#9 Accepted 2ms 284.0 KiB
#10 Accepted 2ms 284.0 KiB
#11 Accepted 1ms 284.0 KiB
#12 Accepted 2ms 284.0 KiB
#13 Runtime Error Segmentation fault 2ms 284.0 KiB
#14 Runtime Error Segmentation fault 2ms 284.0 KiB
#15 Runtime Error Segmentation fault 2ms 284.0 KiB
#16 Runtime Error Segmentation fault 2ms 284.0 KiB
#17 Runtime Error Segmentation fault 2ms 284.0 KiB
#18 Runtime Error Segmentation fault 1ms 284.0 KiB
#19 Runtime Error Segmentation fault 2ms 284.0 KiB
#20 Runtime Error Segmentation fault 2ms 412.0 KiB

信息

递交者
类型
递交
题目
P1537 Problem 5B. 操作字符串
比赛
2023秋 悬赏令第五周
语言
C
递交时间
2023-11-05 22:30:15
评测时间
2023-11-06 14:43:09
评测机
分数
60
总耗时
42ms
峰值内存
412.0 KiB