有多组数据计算时,要注意将用于计算的数组清空,所用函数为
memset(a, 0, sizeof(a))
memset(数组名,赋值,sizeof(数组名))
这样就可以将a数组里的所有数设置为0
RunID | User | Nick Name | Problem ID | Result | Memory | Time | Language | Code Length | Submit Time |
77589 | jzlb_cxr_dsx | 小*最* | Accepted | 2036 KiB | 0 ms | C++ | 731 bytes | 2023-04-01 22:35:26 | |
77584 | jzlb_cxr_dsx | 小*最* | Wrong Answer | 2036 KiB | 0 ms | C++ | 716 bytes | 2023-04-01 22:14:10 | |
77552 | jzlb_cxr_dsx | 小*最* | Compile Error | 0 KiB | 0 ms | C++ | 721 bytes | 2023-04-01 16:39:12 | |
77551 | jzlb_cxr_dsx | 小*最* | Accepted | 2140 KiB | 0 ms | C++ | 804 bytes | 2023-04-01 16:28:05 | |
77544 | jzlb_cxr_dsx | 小*最* | Runtime Error | 2024 KiB | 0 ms | C++ | 1973 bytes | 2023-04-01 16:20:55 | |
77351 | jzlb_cxr_dsx | 小*最* | Wrong Answer | 2024 KiB | 0 ms | C++ | 669 bytes | 2023-03-30 12:26:46 | |
77350 | jzlb_cxr_dsx | 小*最* | Runtime Error | 2024 KiB | 0 ms | C++ | 742 bytes | 2023-03-30 12:25:37 |