有多组数据计算时,要注意将用于计算的数组清空,所用函数为
memset(a, 0, sizeof(a))
memset(数组名,赋值,sizeof(数组名))
这样就可以将a数组里的所有数设置为0
RunID | User | Nick Name | Problem ID | Result | Memory | Time | Language | Code Length | Submit Time |
77535 | jzlb_chengyixuan | 程意轩 | Accepted | 2036 KiB | 0 ms | C++ | 721 bytes | 2023-04-01 14:06:33 | |
77534 | jzlb_chengyixuan | 程意轩 | Wrong Answer | 2036 KiB | 0 ms | C++ | 666 bytes | 2023-04-01 14:01:40 |