/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void init()':
/in/foo.cc:35:51: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   vector<pair<int,int>>().swap(v[i]),vis[i]=cnt[i]=id[i]=0,q[i]={0,0,0},dis[i]=0x3f3f3f3f3f3f3f3f;
                                             ~~~~~~^~~~~~~~
/in/foo.cc:35:80: warning: overflow in implicit constant conversion [-Woverflow]
   vector<pair<int,int>>().swap(v[i]),vis[i]=cnt[i]=id[i]=0,q[i]={0,0,0},dis[i]=0x3f3f3f3f3f3f3f3f;
                                                                                ^~~~~~~~~~~~~~~~~~
/in/foo.cc:36:21: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
   fo(j,0,50)dp[j][i]=0;
             ~~~~~~~~^~
/in/foo.cc:4:32: note: within this loop
 #define fo(i,l,r) for(int i=l;i<=r;i++)
                                 
/in/foo.cc:34:5:
  fo(i,0,200000){
     ~~~~~                       
/in/foo.cc:34:2: note: in expansion of macro 'fo'
  fo(i,0,200000){
  ^~
# 状态 耗时 内存占用
#1 Accepted 226ms 29.719 MiB
#2 Accepted 229ms 30.52 MiB
#3 Accepted 230ms 29.734 MiB
#4 Accepted 231ms 29.73 MiB
#5 Accepted 232ms 29.742 MiB
#6 Accepted 233ms 29.73 MiB
#7 Accepted 440ms 32.465 MiB
#8 Accepted 1659ms 33.375 MiB
#9 Accepted 1291ms 33.195 MiB
#10 Accepted 1087ms 33.359 MiB

信息

递交者
类型
递交
题目
P2030 逛公园
语言
C++
递交时间
2025-01-13 09:34:40
评测时间
2025-01-13 09:34:40
评测机
分数
100
总耗时
5863ms
峰值内存
33.375 MiB