2018”N02ŒŽ20“ú

•½¬‚Q‚X”N“x@‹ZpŽm‘æˆêŽŸŽŽŒ±–â‘è@î•ñHŠw•”–å@‡V|‚R

‡V|‚R
ŽŸ‚Ì‚bŒ¾Œê‚̃vƒƒOƒ‰ƒ€‚ðŽÀs‚µ‚½‚Æ‚«‚ɏo—Í‚³‚ê‚é
Œ‹‰Ê‚Í‚Ç‚ê‚©B

#include <stdio.h>
int p(int x, int y) {
@if (x > y) return p(x - y, y);
@if (x < y) return p(y - x + 2, x);
@return x;
}

int main ()
@printf("%d", p(5, 6));
}

‡@@‚P@@‡A@‚Q@@‡B@‚R@@‡C@‚S@@‡D@‚T



“š‚¦‚Í‚±‚¿‚ç
ƒ^ƒOF‚bŒ¾Œê
posted by ƒtƒ@[ƒXƒgƒ}ƒNƒ at 20:20| Comment(0) | H29‹ZpŽmˆêŽŸŽŽŒ±(î•ñHŠw)