/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void mk_tree(int)':
/in/foo.cc:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |     for (int i = 0; i < conn[node].size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void prepare(int)':
/in/foo.cc:38:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |     for (int i = 0; i < tree[node].size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void calc(int)':
/in/foo.cc:54:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   54 |     for (int i = 0; i < tree[node].size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:81:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
   81 |     printf("%d %d", g[1], (2*f[1])%MOD);
      |                ~^         ~~~~~~~~~~~~
      |                 |                 |
      |                 int               long long int
      |                %lld
# 状态 耗时 内存占用
#1 Accepted 9ms 9.742 MiB
#2 Accepted 9ms 9.746 MiB
#3 Accepted 10ms 9.75 MiB
#4 Accepted 9ms 9.832 MiB
#5 Accepted 8ms 9.91 MiB
#6 Accepted 8ms 9.91 MiB
#7 Accepted 29ms 13.848 MiB
#8 Accepted 60ms 19.508 MiB
#9 Accepted 102ms 25.984 MiB
#10 Accepted 104ms 25.961 MiB

信息

递交者
类型
递交
题目
P1906 联合权值
语言
C++
递交时间
2026-10-28 21:53:44
评测时间
2026-10-28 21:53:44
评测机
分数
100
总耗时
354ms
峰值内存
25.984 MiB