/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool cmp1(node, node)':
/in/foo.cc:10:27: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
   10 |         for (int i = 0; i < min(l.y.size(), r.y.size()); i++)
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'bool cmp2(node, node)':
/in/foo.cc:17:27: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
   17 |         for (int i = 0; i < min(l.y.size(), r.y.size()); i++)
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   28 |                 a[x] = 'a' + i;
      |                   ^
/in/foo.cc:36:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |                 for (int j = 0; j < b[i].y.size(); j++)
      |                                 ~~^~~~~~~~~~~~~~~
/in/foo.cc:37:48: warning: array subscript has type 'char' [-Wchar-subscripts]
   37 |                         b[i].y[j] = a[b[i].y[j]];
      |                                                ^
# 状态 耗时 内存占用
#1 Accepted 2ms 500.0 KiB
#2 Accepted 2ms 692.0 KiB
#3 Accepted 5ms 988.0 KiB
#4 Accepted 5ms 884.0 KiB
#5 Accepted 4ms 840.0 KiB
#6 Accepted 3ms 716.0 KiB
#7 Accepted 3ms 716.0 KiB
#8 Accepted 1ms 500.0 KiB
#9 Accepted 3ms 724.0 KiB
#10 Accepted 5ms 944.0 KiB

信息

递交者
类型
递交
题目
P1500 笨笨的单词排序
语言
C++
递交时间
2026-04-05 21:37:10
评测时间
2026-04-05 21:37:10
评测机
分数
100
总耗时
37ms
峰值内存
988.0 KiB