/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool check(int)':
/in/foo.cc:45:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int j = 0; j < linker[cur].size(); j ++)
                    ~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:89:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while ((n / (p + 1)) > party_2.size() || (n / (party_2.size() + 2)) > p)
          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:89:71: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while ((n / (p + 1)) > party_2.size() || (n / (party_2.size() + 2)) > p)
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/in/foo.cc:97:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j < linker[x].size(); j ++)
                     ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:105:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
   printf("%d ", party_1.size());
                               ^
/in/foo.cc:106:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < party_1.size(); i ++) printf("%d ", party_1[i]);
                   ~~^~~~~~~~~~~~~~~~
/in/foo.cc:108:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
   printf("%d ", party_2.size());
                               ^
/in/foo.cc:109:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < party_2.size(); i ++) printf("%d ", party_2[i]);
                   ~~^~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 41ms 1.648 MiB
#2 Accepted 47ms 2.055 MiB
#3 Accepted 48ms 1.789 MiB
#4 Accepted 52ms 1.785 MiB
#5 Accepted 65ms 2.062 MiB
#6 Accepted 79ms 2.371 MiB
#7 Accepted 91ms 2.219 MiB
#8 Accepted 100ms 2.543 MiB
#9 Accepted 105ms 2.461 MiB
#10 Accepted 123ms 2.551 MiB

信息

递交者
类型
递交
题目
P2054 热闹的聚会与尴尬的聚会
比赛
山东省选2019同步赛——第二场
语言
C++
递交时间
2019-05-07 14:52:14
评测时间
2019-05-07 14:52:14
评测机
分数
100
总耗时
757ms
峰值内存
2.551 MiB