/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
/in/foo.cc:51:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (count == 0 && i >= s.size() && i >= b.s.size()) break;
                   ~~^~~~~~~~~~~
/in/foo.cc:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (count == 0 && i >= s.size() && i >= b.s.size()) break;
                                    ~~^~~~~~~~~~~~~
/in/foo.cc:53:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (i < s.size()) x += s[i];
     ~~^~~~~~~~~~
/in/foo.cc:54:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (i < b.s.size()) x += b.s[i];
     ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator*(int) const':
/in/foo.cc:66:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (carry == 0 && i >= s.size()) break;
                   ~~^~~~~~~~~~~
/in/foo.cc:68:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 if (i < s.size()) x += (long long)times * s[i];
     ~~^~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInt&)':
/in/foo.cc:82:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (int j = 0; j < strlen(buf); j++) out << buf[j];
                 ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'bool check(std::__cxx11::string&, std::__cxx11::string&, int, int)':
/in/foo.cc:165:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (int i = 0, j = pos + blank;i < a.size() && j < b.size(); i++,j++)
                                 ~~^~~~~~~~~~
/in/foo.cc:165:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (int i = 0, j = pos + blank;i < a.size() && j < b.size(); i++,j++)
                                                 ~~^~~~~~~~~~
/in/foo.cc: In function 'bool check_through(std::__cxx11::string, std::__cxx11::string&, int)':
/in/foo.cc:174:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (;pos < b.size(); pos += a.size())
       ~~~~^~~~~~~~~~
/in/foo.cc: In function 'bool all(std::__cxx11::string&, char)':
/in/foo.cc:184:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (int i = 0; i < a.size(); i++)
                 ~~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:197:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 else for (int len = 1; len <= s.size(); len++)
                        ~~~~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 972.0 KiB
#2 Accepted 1ms 188.0 KiB
#3 Accepted 2ms 196.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Accepted 1ms 312.0 KiB
#6 Accepted 1ms 188.0 KiB
#7 Accepted 1ms 208.0 KiB
#8 Accepted 1ms 188.0 KiB
#9 Accepted 1ms 192.0 KiB
#10 Accepted 1ms 204.0 KiB
#11 Accepted 1ms 192.0 KiB
#12 Accepted 1ms 312.0 KiB
#13 Accepted 2ms 332.0 KiB
#14 Accepted 1ms 188.0 KiB
#15 Accepted 1ms 192.0 KiB
#16 Accepted 1ms 204.0 KiB
#17 Accepted 1ms 192.0 KiB
#18 Accepted 1ms 188.0 KiB
#19 Accepted 1ms 204.0 KiB
#20 Accepted 1ms 188.0 KiB
#21 Accepted 1ms 192.0 KiB
#22 Accepted 1ms 204.0 KiB
#23 Accepted 1ms 200.0 KiB
#24 Accepted 1ms 188.0 KiB
#25 Accepted 1ms 208.0 KiB
#26 Accepted 2ms 316.0 KiB
#27 Accepted 1ms 192.0 KiB
#28 Accepted 2ms 204.0 KiB
#29 Accepted 7ms 320.0 KiB
#30 Accepted 1ms 188.0 KiB
#31 Accepted 2ms 208.0 KiB
#32 Accepted 1ms 188.0 KiB
#33 Accepted 2ms 316.0 KiB
#34 Accepted 2ms 204.0 KiB
#35 Accepted 1ms 192.0 KiB
#36 Accepted 1ms 188.0 KiB
#37 Accepted 1ms 208.0 KiB
#38 Accepted 2ms 316.0 KiB
#39 Accepted 1ms 188.0 KiB
#40 Accepted 1ms 200.0 KiB

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2018-11-19 07:42:49
评测时间
2018-11-19 07:42:49
评测机
分数
400
总耗时
76ms
峰值内存
972.0 KiB