قړB 

April 25 [Fri], 2008, 19:58
݂ȂAXPW[ǗɁu蒠vgĂ܂H




gтƂp\Rɓo^Ăl̂ȁHHH



͎d̃XPW[͐Eł̕֋XAO[vEFAɓo^ĊǗĂ܂Apɂ͂͂XPW[ȂƕsBBB



͌̕\AiOȂ̂ł(;^_^A








ŁA܂ł낢ȃ^Cv̎蒠gĂ̂łBBB




ŋ߂̓RII

CꉉKۑ7-6b(nmC̓̍ċA) 

February 15 [Fri], 2008, 6:21


/* _x_y։~Ղړ */
int stick_move(int x, int y){
//_xɉ~ՂȂƂAIɈړȂ
if(stick[x][stick_top(x)]==0){
return 0; //ړłȂƂ0Ԃ
}
//_yɉ~ՂȂƂAIɈړ
else if(stick[y][stick_top(y)]==0){
stick[y][stick_top(y)] = stick[x][stick_top(x)];
stick[x][stick_top(x)] = 0;
printf(" From _%c%d To _%c%d OK!\n",
alph(x), stick_top(x)+1, alph(y), stick_top(y)+1);
return 1; //ړłƂ1Ԃ
}
//_x_ỷ~(ԏ)傫Ƃړ
else if(stick[x][stick_top(x)] < stick[y][stick_top(y)]){
stick[y][stick_top(y)+1] = stick[x][stick_top(x)];
stick[x][stick_top(x)] = 0;
printf(" From _%c%d To _%c%d OK!!\n",
alph(x), stick_top(x)+1, alph(y), stick_top(y)+1);
return 1; //ړłƂ1Ԃ
}
return 0; //ړłȂƂ0Ԃ
}

/* ԏ̉~ՂԖ(0`)߂ */
int stick_top(int x){
int i;

for(i=0;stick[x][i]>0;i++);
if(i==0) return 0;
return i-1;
}

/* _abcɂ~Ղ̕\ */
void hanoi_look(void){
int i, abc;

for(abc=0; abc<3; abc++){
printf(" _%c |", alph(abc));
for(i=0; i<n; i++){
if(stick[abc][i]==0) printf("---");
else if(i<stick_top(abc)+1){
if(stick[abc][i]<10)
printf("-%d-", stick[abc][i]); //1\
else printf("-%d", stick[abc][i]); //2\
}
}
printf("\n");
}
printf("\n");
}

/* lAt@xbgɕԂ֐ */
char alph(int abc){
if(abc==0) return 'a';
else if(abc==1) return 'b';
else return 'c';
}

/* _an̉~()ς,_bcɂ0 */
void stick_set(void){
int i, abc;

for(abc=0; abc<3; abc++){
for(i=0;i<n;i++){
if(abc==0) stick[abc][i] = n - i;
else stick[abc][i] = 0;
}
}
}

/* ǂݍ */
int yomi(int min, int max){
int i, suji;
unsigned char moji[BUF];

for(i=0;i<1;){
printf(" Input value: ");
if(gets(moji)==NULL) break;
switch(sscanf(moji, "%d%s", &suji, &moji)){
case EOF:
case 0:
printf(" error: ͂ĉ\n");
break;
case 1:
if(suji==-1) i++; //for𔲂o
else if(min<=suji && suji<=max) i++; //for𔲂o
else printf(" error: %d`%dɂĉ\n", min, max);
break;
case 2:
printf(" error: ]vȕ܂\n");
break;
}
}
return suji; //min`max̒lsujiԂ
}





͗ၕo͗


閧BĂ(ḾL)





q

܂ˁAۑ̈ӖǂHIłˁB
PDnmC̖̓Rs[^
QDnmC̖̓lԂ
ǂłH



܁AO҂ƁAɂ͂ȂŃpXłB
Ɍ҂ƌߕtāA܂I
PԂ͊ہXY݂܂ԂႯ߂ǂ(PP}})
łAǂȂ{ɃQ[炵悤ƂȂ撣܂I



Ƃ낪II



ŌւɂȂċCÂBB
ċAĂȂHI



BEKE(mD`)EKEBE@@



mˁB



Nɂ̖ʂȓw͂F߂Ă炢B
Ƃ̂ȂARpCăQ[ĂR(LDM*)

uOFBƑΐ큕VTpbg!? 

February 07 [Thu], 2008, 21:23
̓eł(*LDM)nECCxgȂāA
KbNV̂łRj`...(L[M*)



VႪł悤ł(*LDM)

́EE|֥M) A^}ɉHEE
[EE(VPցPVU܂A^}EE



Ă!!!!!ƁEEȂ̌ʂȂł傩?H
hbv?H{[iX?H
ĂȂ_(^o^)^
e󂯂ɑ()(S) ނɂނɂサĂ݂Ǝv܂
o`IXփ==w(;KށK)m S[S[



̖ȂłÃuOŒǂȂ`
‚Ƃ̂ƂőΐĂ܂(*LցM*)

R[X͂hrPWł(*LDM)
ْ̂Ă̂?H͔ł(oE_E)/"(m_<B)VV
(o^_^o)ςhrɂ͈炵`㔼ۂōXVłEE
̂ݍXV+.(́E*)+.‚͌XVł
R(V֥V)Ɂ':*ī b^l!!(vK[K)n(KKv)BF[B
ƂĂ̂Ԃł(*LDM)䂤̂ŒǂȂȂā`uOĂĂ悩ł(*LցM*)܂܂(*L֥)(֥M*)Ȱ



QlƁS(*^K) !!

ƂɁ`Nƍ(MÁL)m


Nuǂ?HyvƕꌋʂȂǂȂǕ+.(́E*)+.



(o^_^o)uhrłXVł`ȂƂSTOOv



Nuw(KoK)w II[!`ŃXRA?Hv



(o^_^o)u() MNb!I޷ԶޯEE c(MDL)v



(o^_^o)u-QWEE( "EցEJ)ް݁v



NuICICEE (;LtM)mAȂɂ҂łȂłv



(o^_^o)uPUł‚‚C(B)UeeEEEv@



ȁ[ĘbĂ܂(V^^)o_c͂͂͂͂




QȎłȂƂƂEEE(B߃)
Đ{^Ă







S(LM)TEwwePg`łĂ܂
VTCVS̃pbgL^ł(ɁĹM*)
QڂȂł`UO𒴂Ɓ`
JfĂȂłˁEEEvCĂ݂A߂łEE(-- )o Ŋ𖡂Ă(V^^)o_c͂͂͂͂

̈ 

January 29 [Tue], 2008, 21:24
̈̎޲


wẐƂBłق


邩Ȃ̈̃}bg޲II


̂mȂǂȂ޲


}bgtgɎv[{


]Ƃ悤ƎvĂ


C‚V‚ł鎄BBB(


EEE_lꂽ˔\(^Ƃ....

ٓiLفj 

January 16 [Wed], 2008, 21:22
̂ٓ͂Ȃ񂶁B



Mޒٓ`B



uPRṽLB




K̊pɑO邩玎ÂA



M̖Xq̐Fɂ肾́B



獡̓MɁ`B



sڂA



v؂đ傫߂ɍ܂B



܂ōM̒ŁA



̂ԋ߂ȁH

x݂́c 

January 11 [Fri], 2008, 0:01
x݂͑ނŖёUĂ܂

āAuWABB 

December 24 [Mon], 2007, 21:31
GЂ􂨂ƂĂBBB
ΌȂāBBB
tHN[WOŐ OTL

Ƃog 

December 17 [Mon], 2007, 18:36
̃oǵA܂PɂƂogł!!
ȊŁy߁zy_Jz
ȒPȂ̂łĂƂꂵł
4lȏɉ񂵂ĉ!
ł́A撣܂傤B

yςҁ[zysAmzŷ߁zy߂ˁzylRz yJsz








󂳂

Ղ
P R
vtB[
  • vtB[摜
  • ACR摜 jbNl[Fslrgag154
ǎ҂ɂȂ
2008N04
« Ǒ @|@ ̌ »
y
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
ŐVRg
Yapme!ꗗ
ǎ҂ɂȂ