刚学dp,11分其余全RE,找大佬指点一下,谢谢

P1216 [USACO1.5] [IOI1994]数字三角形 Number Triangles

ufnrixhuyedw @ 2022-08-24 21:06:41


https://www.luogu.com.cn/paste/8nza6trw

by LeTu_Jun @ 2022-08-24 21:11:16

for(int i=n-1;i>=1;i++){

15 行写错了

应为

for(int i=n-1;i>=1;i--){


by LeTu_Jun @ 2022-08-24 21:11:22

@ufnrixhuyedw


by bamboo12345 @ 2022-08-24 21:11:26

@ufnrixhuyedw 输入的问题


by bamboo12345 @ 2022-08-24 21:12:09

楼上正解


by ufnrixhuyedw @ 2022-08-24 21:13:20

@LeTu_Jun ok


by ufnrixhuyedw @ 2022-08-24 21:13:39

@bamboo123 ok


by ufnrixhuyedw @ 2022-08-24 21:15:40

@LeTu_Jun 改了后22pts;这里:https://www.luogu.com.cn/paste/8nza6trw


by ufnrixhuyedw @ 2022-08-24 21:16:21

@bamboo123 还是...22pts


by wwkwwkwwk @ 2022-08-24 21:22:50

@ufnrixhuyedw


https://www.luogu.com.cn/problem/solution/P1216

by ufnrixhuyedw @ 2022-08-24 21:23:59

@wwkwwkwwk 爬


| 下一页