有多组数据计算时,要注意将用于计算的数组清空,所用函数为
memset(a, 0, sizeof(a))
memset(数组名,赋值,sizeof(数组名))
这样就可以将a数组里的所有数设置为0
Standing | User | Nick Name | Solved | TIME PENALTY | A | B |
1 | jzlb_gcx | 顾辰曦 | 2 | 111:19:52 | 54:34:00(-8) | 54:05:52 |
2 | jzlb_cxr_dsx | 小*最* | 2 | 298:23:31 | 151:35:26(-2) | 145:28:05(-2) |
3 | jzlb_trz | 诗剑行 | 1 | 125:30:44 | 125:30:44 | (-3) |
4 | jzlb_chengyixuan | 程意轩 | 1 | 143:26:33 | 143:06:33(-1) | |
5 | jzlb_txy | Coco is coo! | 1 | 152:39:23 | (-4) | 151:19:23(-4) |
6 | jzlb_xyx | 谢宇轩 | 0 | 00:00:00 | (-7) | (-7) |