fork download
  1. set Year [gets stdin]
  2. set u
  3. if {[expr $year % 4] == 0}{
  4. if {[expr $year % 100] != 0}
  5. set u "閏年"
  6. } elseif {[expr $year % 400] == 0} {
  7. set u "閏年"
  8. } else {
  9. set u "平年"
  10. }
  11. }
Runtime error #stdin #stdout 0.03s 5272KB
stdin
2000
stdout
Standard output is empty