From: g2k032@cfi.waseda.ac.jp (KANOU Hiroki)
Subject: Re: leap year
X-Nntp-Posting-Host: aqua2c.cfi.waseda.ac.jp
Organization: Waseda Univ., Tokyo, Japan
	<823@headgw.hq.sony.co.jp>
Distribution: fj
Date: Fri, 20 Nov 1992 04:35:13 GMT

$@<mLn!w$o$;$@$H?=$7$^$9!#$A$g$C$H%U%)%m!<$r!#(J
In article <823@headgw.hq.sony.co.jp> makoto@pdp.crl.sony.co.jp (Makoto Inoue) writes:
> In article <CHIAKI.92Nov19105522@alpen.furukawa.co.jp>, chiaki@furukawa.co.jp (Chiaki Nishizawa) writes:
> > $@<B$O(J,$@@5$7$$1<G/$N5a$aJ}$,$O$C$-$j$7$J$$$N$G$9(J.
> > 
> > $@?&>l$NCg4V$KJ9$$$F$b3N?.$r;}$C$F$$$k$h$&$G$b$J$/(J,$@<-E5(J/$@<-=q$J$I$K$b!V(J1
> > $@F|B?$$F|!WDxEY$N@bL@$7$+$J$/(J,$@:$$C$F$$$^$9(J.
> > $@EEOC@h$,0c$C$?$+$bCN$l$^$;$s$,(J,$@5$>]D#$KLd$$9g$o$;$F$_$?=j(J,$@$I$3$+$NE7J8(J
> > $@Bf$KLd$$(J$@9g$o$;$F2<$5$$$H?6$i$l$F$7$^$$$^$7$?(J.
> > $@E7J8Bf$KEEOC$9$k$N$+!A(J,$@Bg$2$5$K$J$C$F$-$?$J$H;W$C$F$$$?$i(J,$@$3(J$@$3$N(JNG$@$,;W(J
> > $@$$$D$$$?<!Bh$G$9(J.
> 
> year $@$K@>Nq$rBeF~$7$F!"(J
> 
> if( ( year % 4 == 0  &&  year % 100 != 0 )  ||  ( year % 400 == 0 ) )
> 	  $@1<G/(J
> else
> 	  $@IaDL$NG/(J
> 
> $@$@$C$?$O$:!#(J

$@%0%l%4%j%*Nq$NCV(J$@1<K!$G$O$=$NDL$j$G$9!#(J
1$@B@M[G/$O(J365.24219879$@F|$G$9$+$i5*85A0(J46$@G/!J$3$NG/$O(J1$@G/$,(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1$@2s!W$N1<G/$r(J400$@G/$K(J3$@2s<h$j=|$/$b$N$G!"(J
1$@F|J,$N68$$$,@8$:$k$N$OLs(J3319$@G/3]$+$j$^$9!#(J$@0lIt$N9q$O$5$i$K@53N$J!"(J
900$@G/$K(J7$@2s1<G/$r<h$j=|$/J}<0$r<h$C$F$$$^$9!#$3$NJ}K!$@$H(J43000$@G/$b(J
$@7P$?$J$$$H(J1$@F|$N68$$$O@8$8$^$;$s!#(J

$@%.%j%7%cNq(J
if ((year % 4 == 0 && year % 100 != 0) ||
    year % 900 == 200 || year % 900 == 600)
        $@1<G/(J
else
        $@J?G/(J

$@ElJ}?7Nq(J
if ((year % 4 == 0 && year % 100 != 0) ||
    year % 900 == 200 || year % 900 == 700)
        $@1<G/(J
else
        $@J?G/(J

$@0J>e$N%"%k%4%j%:%`$K=>(J$@$$$^$9!#(J
$@%.%j%7%cNq$O!"%.%j%7%c$,(J1924$@G/$K%f%j%&%9Nq$+$i2~Nq$7$?;~$K:NMQ$7$?(J
$@$b$N$G!"ElJ}?7Nq$O(J1923$@G/!"(J$@%_%i%s%3%t%#%C%A$,@)Dj$7!"8=:_$G$O%(%A%*%T%"$H(J
$@%m%7%"@5652q$,:NMQ$7$F$$$k$b$N$G$9!#%+%H%j%C%/652q$NJ}(J$@<0$+$i$NFH<+@-$r(J
$@BG$A=P$=$&$H$7$?$N$G$7$g$&!#(J2400$@G/(J3$@7n$+$i(J2500$@G/(J2$@7n$^$G$N4V%.%j%7%c$G$O(J
$@B>$N9q$h$j(J1$@F|(J$@Aa$/$J$k$o$1$G$9$M!#(J

$@!tF|K\$N859f@)O@<T$NCf$K$O@>Nq$r!V%-%j%9%H65$NNq!W$H$7$FLdBj;k$9$k?M$,(J
$@!t$$$k$1(J$@$I!"%0%l%4%j%*Nq$rGQ;_$7$FB@1"B@M[Nq$KLa$;$H<gD%$9$k?M$O$$$J$$$N!)(J

$@;29MJ88%(J  NHK$@;TL1Bg3X(J1989$@G/(J10-12$@7n(J$@4|%F%-%9%H!V;~$HNq$N2J3X!W(J

$@!tMKF|$O(J429$@G/$K@)Dj$5$l$F0JMh$:$C$HO"B3$7$F$$$k$s$@$=$&$J!#(J
--
   $@<mLn(J  $@9((J$@<y(J                          $@#B#M#R#N#Z(J $@>.$c$e$g!<(J
   g2k032@cfi.waseda.ac.jp              $@#Y#H#K#S#T(J $@#A#U#I#O#E(J
   $@Aa0pEDBg3XM}9)3XIt1~MQJ*M}3X2J#1G/(J    $@#P#W#G#D#V(J $@$s$C!"!#(J
Newsgroups: kek,hep.misc,tsukuba.misc,fj.sci.astro