有多组数据计算时,要注意将用于计算的数组清空,所用函数为
memset(a, 0, sizeof(a))
memset(数组名,赋值,sizeof(数组名))
这样就可以将a数组里的所有数设置为0
RunID | User | Nick Name | Problem ID | Result | Memory | Time | Language | Code Length | Submit Time |
77493 | jzlb_trz | 诗剑行 | Compile Error | 0 KiB | 0 ms | C++ | 863 bytes | 2023-03-31 21:13:16 | |
77492 | jzlb_trz | 诗剑行 | Wrong Answer | 2140 KiB | 0 ms | C++ | 801 bytes | 2023-03-31 20:53:06 | |
77491 | jzlb_trz | 诗剑行 | Wrong Answer | 2140 KiB | 0 ms | C++ | 800 bytes | 2023-03-31 20:47:05 | |
77490 | jzlb_trz | 诗剑行 | Compile Error | 0 KiB | 0 ms | C++ | 792 bytes | 2023-03-31 20:46:14 | |
77489 | jzlb_trz | 诗剑行 | Wrong Answer | 2140 KiB | 0 ms | C++ | 741 bytes | 2023-03-31 20:42:57 | |
77488 | jzlb_trz | 诗剑行 | Compile Error | 0 KiB | 0 ms | C++ | 739 bytes | 2023-03-31 20:42:07 | |
77487 | jzlb_trz | 诗剑行 | Accepted | 2140 KiB | 0 ms | C++ | 936 bytes | 2023-03-31 20:30:44 |