require 'date'
def last_modified(file)
  t1 = File.stat(file).ctime
  t2 = Time.now
  elapsed = (t2-t1)/(60*60*24)
  puts '#{file} was last modified #{elapsed} days ago.'
end

last_modified('c:\\')

A EASY problem, just for accomplish today’s task.
Already late again
美高梅电子游戏 ,And spend too much time, so I am disappointed.

DESCRIPTION:
The count-and-say sequence is the sequence of integers beginning as
follows:1, 11, 21, 1211, 111221, …

1 is read off as “one 1” or 11
11 is read off as “two 1s” or 21
21 is read off as “one 2, then one 1” or 1211
Given an integer n, generate the nth sequence.
Note: The sequence of integers will be represented as a string.

Author

发表评论

电子邮件地址不会被公开。 必填项已用*标注

相关文章