/ Vijos /

记录详情

Accepted

foo.cc: In function 'int work(int, int, int, int, int)':
foo.cc:7:121: warning: no return statement in function returning non-void [-Wreturn-type]
     ii=i-1;while (ii>=k) {for (jj=k;((z+jj*jj*ii+f[k-1]<=n)&&(jj<j));jj++) work(k-1,ii,jj,y+2*ii*jj,z+ii*jj*jj);ii--;}}}}
                                                                                                                         ^
foo.cc: In function 'int main()':
foo.cc:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&m);f[0]=0;t[0]=0;for (i=1;i<=m;i++) {f[i]=f[i-1]+i*i*i;t[i]=t[i-1]+2*i*i;}if (f[m]>n) return 0;
     ~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 0ms 256.0 KiB
#7 Accepted 2ms 256.0 KiB
#8 Accepted 2ms 256.0 KiB
#9 Accepted 0ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1297 生日蛋糕
语言
C++
递交时间
2021-02-04 03:35:14
评测时间
2021-02-04 03:35:14
评测机
分数
100
总耗时
12ms
峰值内存
256.0 KiB