WUPC2012
1番 http://wupc2012.contest.atcoder.jp/tasks/wupc2012_1
<?php fscanf(STDIN,"%d %d",$ma,$da); fscanf(STDIN,"%d %d",$mb,$db); $data1 = "2012/{$ma}/{$da}"; $data2 = "2012/{$mb}/{$db}"; $daydiff = (strtotime($data2)-strtotime($data1))/(3600*24); echo "$daydiff\n"; ?>