记录详情

Accepted

/in/foo.cc: In function 'std::__cxx11::string addNegabinary(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:16:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while (i < arr1.size() || i < arr2.size() || carry != 0) {
            ~~^~~~~~~~~~~~~
/in/foo.cc:16:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while (i < arr1.size() || i < arr2.size() || carry != 0) {
                               ~~^~~~~~~~~~~~~
/in/foo.cc:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i < arr1.size()) sum += arr1[i] - '0';
             ~~^~~~~~~~~~~~~
/in/foo.cc:19:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i < arr2.size()) sum += arr2[i] - '0';
             ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 11ms 920.0 KiB
#2 Accepted 11ms 876.0 KiB
#3 Accepted 5ms 596.0 KiB
#4 Accepted 3ms 452.0 KiB
#5 Accepted 5ms 564.0 KiB
#6 Accepted 8ms 820.0 KiB
#7 Accepted 12ms 1.004 MiB
#8 Accepted 7ms 728.0 KiB
#9 Accepted 7ms 680.0 KiB
#10 Accepted 6ms 592.0 KiB
#11 Accepted 13ms 1004.0 KiB
#12 Accepted 7ms 732.0 KiB
#13 Accepted 11ms 908.0 KiB
#14 Accepted 8ms 712.0 KiB
#15 Accepted 9ms 852.0 KiB
#16 Accepted 10ms 824.0 KiB
#17 Accepted 9ms 844.0 KiB
#18 Accepted 12ms 976.0 KiB
#19 Accepted 5ms 592.0 KiB
#20 Accepted 7ms 704.0 KiB

信息

递交者
类型
递交
题目
P1582 Problem 4B. p进制数3
比赛
2024春 悬赏令第四周
语言
C++
递交时间
2024-05-06 12:00:16
评测时间
2024-05-10 18:00:35
评测机
分数
100
总耗时
177ms
峰值内存
1.004 MiB