作业帮 > 综合 > 作业

acm----all your base

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/16 15:36:35
acm----all your base
系统说wrong answer.求解(本人刚学没多久C语言.请不要用C++解释……谢谢)
#include "stdio.h"
#include "math.h"
int base(int,int,int);
int a[3]={1,1,1},b,c,d,i,j,n,w,r,k=0;
int main()
{
\x05while(a[0]!=0&&a[1]!=0&&a[2]!=0)
\x05{
\x05\x05if(k==0)
\x05\x05{
\x05\x05\x05for(i=0;i
#include "stdio.h"
#include "math.h"
int base(int,int,int);
int a[3]={1,1,1},b,c,d,i,j,n,w,r,k=0;
int main()
{
\x05while(a[0]!=0||a[1]!=0||a[2]!=0)
\x05{
\x05\x05if(k==0)
\x05\x05{
\x05\x05\x05for(i=0;i
再问: 哈。不是这问题哈,原来是题目我看漏了。附上看漏的部分: Output For each input, you should draw graphic using character '+' with given size N. The width of your drawing is 2*N+1, and the height is 2*N+1. Just see the sample to understand the deail. Output one blank line after each symbol. 原来最后要求还要输出一个空行! 不过也谢谢你哈