/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void build()':
/in/foo.cc:53:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < temp.size() - 1; ++i)
                         ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:54:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = i + 1; j < temp.size(); ++j) {
                                 ~~^~~~~~~~~~~~~
/in/foo.cc:57:34: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
                 int wt = (x & y) + (x ^ y) << 1;
                          ~~~~~~~~^~~~~~~~~
/in/foo.cc:74:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int i = 0; i < temp.size(); ++i) {
                             ~~^~~~~~~~~~~~~
/in/foo.cc:77:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 int r = temp[(i + 1 > temp.size() - 1 ? 0 : i + 1)] - '0';
                               ~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:97:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < temp.size(); ++i) {
                         ~~^~~~~~~~~~~~~
/in/foo.cc:99:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             int r = temp[(i + 1 > temp.size() - 1 ? 0 : i + 1)] - '0';
                           ~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:104:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (new_string.empty() || new_string.size() > max_len || new_string.size() != temp.size() + 1)
                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 368.0 KiB
#2 Accepted 1ms 328.0 KiB
#3 Wrong Answer 3ms 500.0 KiB
#4 Wrong Answer 2ms 400.0 KiB
#5 Time Exceeded ≥1001ms ≥16.039 MiB
#6 Accepted 2ms 456.0 KiB
#7 Time Exceeded ≥1000ms ≥21.477 MiB
#8 Time Exceeded ≥1002ms ≥30.617 MiB
#9 Time Exceeded ≥1002ms ≥35.996 MiB
#10 Time Exceeded ≥1005ms ≥7.91 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2024-07-12 14:52:04
评测时间
2024-07-12 14:52:04
评测机
分数
30
总耗时
≥5023ms
峰值内存
≥35.996 MiB