検索結果 1 件

by opop
7年前
フォーラム: C言語何でも質問掲示板
トピック: C言語 ぽ
返信数: 4
閲覧数: 2944

C言語 ぽ

1000以下の数字の中で一番節が長くなる数字を見つけたいのですが上手くできず頭を悩ましています… #include <stdio.h> #include <stdlib.h> int i,j; int count=0; int m=0,k=0,f; int *a,*b,*c; void zyunkan(int x,int y){ a=malloc((4*y) * sizeof(int)); b=a+y; c=b+y; a[0]=b[0]=c[0]=0; for(i=1;;i++){ c[i]=x%=y; // 余りを求めて、憶えておく j=a[x]; // 余り if (c[j]==x){ b...

詳細検索ページへ移動する