NI 

February 23 [Sat], 2008, 2:14
̒̏oB



‚ʂo΂āAۂ̐A݂ւ̐TĂB
i̐E͌\傫ȎȂ̂ŁAA݂傫̂łBj



A݂̒̐lڂɕtɂꏊɐV𔭌B



wN`AȂƂɃS~̂Ăć`B܂łŏE΂Bx
ƎvȂ琅T𑱂܂B




xTIA
wAAVBx
Ǝvċ߂ÂƁAǂS~͂ꂾł͂ȂBRrj̑܂悤łB



wقĂBłȂƂɎ̂Ă邩ȁBx
L΂ƂċCt܂BɉĂ܂B



wHH׎cHx
łȗ\܂Bl̃_Ző勉̌x‚炵Ă܂B





łiH̕A{ɂ߂ȂjB
lԂ́B



lm𒴂ʂłBȂ^RCɂ͑ł傤B




炭Ȃ̂҂ȂȂԂ񂾂Ǝv܂B
傤ȂĂRrj܂ZbeBOAĒEB
ɂ͂ȂBł̂܂ܕu͂܂̂ŐVŃJo[B




eՂɑzt܂B



炽̌点܂񂪁B




狃ɂȂ܂B



‚Ă肽Ǝv܂B

CꉉKۑ7-5inCr̍ċAj 

February 15 [Fri], 2008, 6:21
ۑ7-5



nCrvZvOCċAIĂяogč쐬DACn0ȏ5ȉƂD






CvO


#include<stdio.h>
#define buf 256 //ǂݍݕ̍ő吔
#define max 5 //n̍ől

/* ÓIϐ錾 */
static int yomi_n, yomi_r;

/* ֐̃vg^Cv錾 */
int cul_permutation(int num, int count);
void yomi(void);

/* C֐ */
void main(void){
int answer;

//ǂݍ
yomi();

//vZ (nCr = nPr / rPr)
answer = cul_permutation(yomi_n,yomi_r) / cul_permutation(yomi_r,yomi_r);

//o
printf("Output: %dR%d = %d\n", yomi_n, yomi_r, answer);
}

/* nPr ̌vZ(n=num, r=count) */
int cul_permutation(int num, int count){
if(num>0 && count>0){
return num * cul_permutation(num-1, --count);
}
else return 1;
}

/* ǂݍ */
void yomi(void){
int i;
unsigned char moji[buf];

for(i=0;i<1;){
printf("n0`%d͈̔͂ŁAnCr̒l߂܂\n", max);
printf(" nr̒l󔒂ŋ؂ē͂Ă\n");
printf(" Enter n r : ");

if(gets(moji)==NULL) break;
switch(sscanf(moji, "%d%d%s", &yomi_n, &yomi_r, &moji)){
case EOF:
case 0:
printf("error:͂Ă\n\n");
break;
case 1:
if(yomi_n<0 || max<yomi_n)
printf("error:n̒l0`%d͂Ă\n", max);
printf("error:r͂Ă\n\n");
break;
case 2:
if(yomi_n<0 || max<yomi_n)
printf("error:n̒l0`%d͂Ă\n\n", max);
else if(yomi_r<0 || yomi_n<yomi_r)
printf("error:r̒l0`n͂Ă\n\n");
else
i++;
break;
default:
printf("Ɠ͂Ă\n\n");
break;
}
}
}





͗ၕo͗


n0`5͈̔͂ŁAnCr̒l߂܂
nr̒l󔒂ŋ؂ē͂Ă
Enter n r : 5 4
Output: 5R4 = 5





q

ċÃvO͉ۑ6-6ŁA܂B
ǂݍ݂̊֐́Aۑ6-6̃vO؂Ă܂B



ċAɂɂ́Aǂ炢\l܂A
nCrvZ֐ċAAnPrċAĂ܂ƁI
ĂAꂪőP̔złĂقiEtEjɃJl

V[YRAp 

February 07 [Thu], 2008, 21:16
|֥M)



Ђ܂̂Ł`V[YRɂȂƉ\̃ApɂĂ܂(֥)
`PWiAJ̃pjł͂ƃV[YQł`
POɃV[YRɂȂ炵ł(֥)
o(KKR)(/KK)o bcS[
ĂĂ`hcŁ`vC͈؂Ă܂EE
āEEp킩ȂEE(֥)



܂̂`pVbv(*LDM)
ETM̎킢ł




GJȊOɂSׂɃETM̎Ă܂(֥)}bNXƂEE΂邗
gf̃TOXƖXq͂łˁ`
́A{ł̔Ă炵ł`̍͂Ȃ`mȂŁ`܂ł|֥M)



Ɓ`{ł͎ĂȂ`ToCoߑ(֥)ȂȂł(*ĹM)
w(P P;w)))BBBtt@ĂāAC‚ł`
IXEE|֥M) ݂Ă݂EE

{ł͂肦ȂiEE
܂EE
PAłȂ(*LDM)O
QAli΂΂炗
RANu̔̔EE
SAi̔EE
(LwM)@`EEE܂EEE
ԕ@ƂEEقEE|֥M)
{łNuި͔̔łĂƎvǂȁ`(֥)
bołΑ劽}EEߋ̂boA̔PԂ̊肢ǁ`ȂȂł傤EE̐`̃ApłboK`n܂΁`ŃvCȂ(֥)GARŃvCł邩+.(́E*)+.
ȂƁ`Nû݂ȁ`ApɈړ(ɁĹM*)



o(*^^*)o͂V[YŜy݂ɑ҂܂傤(֥)

Jʁߋ̎s̊ewԂ̗ 

January 21 [Mon], 2008, 10:19
Ȕ]VCȁHɂl܂ŐĂāBBB
FXȎ܂B

́AĖ[ƕ}ɕʂɕ炵Ă邯...B
{ɐFX```I
h̕ȁH
gHłIIŐĂ͎̂˂I
N̂łBNׂ̈łȂB

BuĂq̎B7NtJ̎...Be̎Betc
l̕_...]@...

ߋ̎́A[ɂ́ASĘb킯ł́AȂ...B
݂RTɂȂ΁AȂẮAÖق̗H
[ɌĂȂ邾낣...B

ĕsɂȂ鎖͕Ȃ˂I
ߋ͉ߋI
ߋ͕ςȂ!́Ałς邵˂I

ߋ̎ɏH̗ɏo܂B
ܒ՗ɂ́I܂I
I܂`̏΂`̂ōs܂i*OOjhhhh

R̃X|bgCg/听 

January 16 [Wed], 2008, 21:04
@(RO)̐_ˍ`͓܂Ă܂B

@̉_̐؂Ԃ璩žX|bgCgƂȂĤCʂƂ炵Ă܂B

@ݑOʼn܂蒆̍qCPw听ہxɂX|bgCg܂B

Vc܁AGPAWJlL͔n 

January 10 [Thu], 2008, 23:41
Vc܁AS|i[ł́Aen̈ʒuƁA
̖rvZĂ݂ƁAAȂƂŁA낤AA

̖ŕAAOPOOO[gUPb[URb̃X[\zAA
ʏ̏オAOCTx邱ƂzB
R̔ńAO镪XɈȂƐAA

VhEQCg@@@RUb
_CW[@@@RTbR
RXoN@@@@RUbT
CVET\@RTbP
VNlNTX@@@RTbQ
GCVfseB
AOlXA[N

f^u[X

uCggD[@RSbQ
`ET
|bvbN
Jpj[
[[NCc
Ah}C[@@RSbW

s̔ńASpƓRAł̂_ăC͔͂B
痈ńAAC‚Δnꂪ̂ŁAA
R̂ƂȂ傫OɐUȂ΂ȂȂAAB
̏ɁA̗͂vnAʏ̖rAODTbO͗͂B
d|xĂB

sn͓R͑z̏ŁAd|𑁂߂ɈAAB
Ah}C[́AAɂȂB
uCggD[AÁAAE[AA͍Ă܂AA

^CA
L܂߂Ė܂ŁA

ȂƎvǁc 

December 30 [Sun], 2007, 2:49
Ɨłe`

O

N

SiȂ炢Ȃłj

҂낵ˁII

EEE 

December 16 [Sun], 2007, 5:47
jŚ@rłB

tςEEE

߂ȂB



Ηj̒xAq̍ĥRӂƂ̔܂

sĂ܂OOG

xʂĂ̂ŁA͍gtyނׂAR𑖂蔲Ă݂܂B

܂ǂ̎q́Aԓ̓AXt@gƂ̂OɂȂĂ̂ŁA

~̎RKKƁA|Ă܂OÔȂłAeɎāi

ɂĂAH𗘗p葁ł܂I



gtYłBBB


ɁAԕxǖɂĂ̎ŘiF͍ōł

^]Ȃ䂦Aʐ^Ȃ̂cOłB







ƓA[EEE

łɁAႪقBBB

̓́ADysȂ₦ł܂ArɂȂȂłˁ`







ƎvĂA~łB

G߂̕ςځBBB̒ǗFlC‚Ă܂
P R
vtB[
  • vtB[摜
  • ACR摜 jbNl[Fdanali1648
ǎ҂ɂȂ
2008N02
« Ǒ @|@ ̌ »
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
ŐVRg
ACR摜NV
» NI i2008N0224j
ACR摜ނ
» Jʁߋ̎s̊ewԂ̗ i2008N0129j
ACR摜lIj[g
» R̃X|bgCg/听 i2008N0118j
ACR摜lIj[g
» Vc܁AGPAWJlL͔n i2008N0118j
Yapme!ꗗ
ǎ҂ɂȂ