結果

問題 No.652 E869120 and TimeZone
ユーザー mai
提出日時 2018-02-27 07:12:58
言語 Ruby
(3.4.1)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 190 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-06-11 12:23:13
合計ジャッジ時間 3,646 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def ascan; gets.split.map(&:to_i);end

h,m,s = gets.chomp.split
h = h.to_i
m = m.to_i
s = s[3..-1].to_f+1e-3

t = Time.utc(1, 1, 1, h, m)
t -= 9*60*60
t += s*60*60

puts t.strftime("%H:%M")
0