fujidig #5352(2008/01/16 06:14 GMT) [ Ruby ] Rating2/2=1.00
see: Perl正規表現雑技
1 2 3 4 5 6
def leap?( year ) return false unless /((^|[02468])[048]|[13579][26])$/.match( year.to_s ) return true unless /00$/.match( year.to_s ) return false unless /((^|[02468])[048]|[13579][26])00$/.match( year.to_s ) return true end
Rating2/2=1.00-0+
[ reply ]
fujidig
#5352()
[
Ruby
]
Rating2/2=1.00
see: Perl正規表現雑技
Rating2/2=1.00-0+
[ reply ]