/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
/in/foo.cc:43:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) break;
                           ~~^~~~~~~~~~~
/in/foo.cc:43:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) break;
                                            ~~^~~~~~~~~~~~~
/in/foo.cc:45:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i < s.size()) x += s[i];
                 ~~^~~~~~~~~~
/in/foo.cc:46:19: 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 'BigInteger BigInteger::operator-(const BigInteger&) const':
/in/foo.cc:56:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) break;
                           ~~^~~~~~~~~~~
/in/foo.cc:56:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g == 0 && i >= s.size() && i >= b.s.size()) break;
                                            ~~^~~~~~~~~~~~~
/in/foo.cc:58:19: 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 'BigInteger BigInteger::operator*(const BigInteger&) const':
/in/foo.cc:68:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
                 ~^~~~~~~~~
/in/foo.cc:68:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
                                         ~^~~~~~~~~~~
/in/foo.cc:70:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (g ==0 && i >= v.size()) break;
                          ~~^~~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
/in/foo.cc:130:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < strlen(buf); j++) out << buf[j];
                         ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 256.0 KiB
#2 Accepted 3ms 368.0 KiB
#3 Accepted 3ms 212.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 5ms 264.0 KiB
#6 Accepted 6ms 332.0 KiB
#7 Time Exceeded ≥1004ms ≥364.0 KiB
#8 Time Exceeded ≥1000ms ≥384.0 KiB
#9 Time Exceeded ≥1005ms ≥372.0 KiB
#10 Time Exceeded ≥1004ms ≥344.0 KiB

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2018-05-23 21:06:49
评测时间
2018-05-23 21:06:49
评测机
分数
60
总耗时
≥4042ms
峰值内存
≥384.0 KiB