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