下载后发现输出没错啊!?qwq

P1464 Function

那我试试
by zhjzhmh @ 2020-03-30 12:13:09


而且memset函数能设置0x3f吗?我很好奇
by duyh1114 @ 2020-03-30 12:13:29


@[zhjzhmh](/user/233815) 谔谔,洛谷的线上IDE和linux系统啊
by HearTheWindSing @ 2020-03-30 12:13:34


还是错的啊
by zhjzhmh @ 2020-03-30 12:13:39


@[duyh1114](/user/65518) 能
by HearTheWindSing @ 2020-03-30 12:13:45


@[wangyxhaha](/user/177072) 本蒟蒻不明白
by zhjzhmh @ 2020-03-30 12:14:21


@[duyh1114](/user/65518) 这个可以的
by zhjzhmh @ 2020-03-30 12:17:18


@[zhjzhmh](/user/233815) 把你wa的第一个点数据摆上来看看
by duyh1114 @ 2020-03-30 12:17:38


``` while(1) { cin>>a>>b>>c; if(a==-1&&b==-1&&c==-1) break; if(a>20) a=21; if(b>20) b=21; if(c>20) c=21; printf("w(%d, %d, %d) = %d\n",a,b,c,w(a,b,c)); } ``` 改成 ``` while(1) { cin>>a>>b>>c; printf("w(%d, %d, %d) = ",a,b,c); if(a==-1&&b==-1&&c==-1) break; if(a>20) a=21; if(b>20) b=21; if(c>20) c=21; printf(" %d\n",w(a,b,c)); } ``` 大概吧?
by vijone @ 2020-03-30 12:17:54


@[zhjzhmh](/user/233815)
by vijone @ 2020-03-30 12:18:12


上一页 | 下一页