結果
問題 |
No.525 二度寝の季節
|
ユーザー |
|
提出日時 | 2017-06-09 22:25:46 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,672 KB |
最終ジャッジ日時 | 2024-09-22 15:04:13 |
合計ジャッジ時間 | 4,549 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 33 |
コンパイルメッセージ
Syntax OK
ソースコード
def ascan; gets.split.map(&:to_i); end def scan; gets.to_i; end require 'Date' h,m = gets.scan(/(\d+):(\d+)/)[0].map(&:to_i) t = Time.new(1,1,1,h,m) t+= 5*60 puts sprintf("%02d:%02d",t.hour,t.min)