結果

問題 No.651 E869120 and Driving
ユーザー Nushi
提出日時 2018-03-09 21:24:38
言語 Ruby
(3.4.1)
結果
AC  
実行時間 92 ms / 1,000 ms
コード長 141 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-09-22 08:57:42
合計ジャッジ時間 1,541 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: `+' after local variable or literal is interpreted as binary operator
Main.rb:3: warning: even though it seems like unary operator
Syntax OK

ソースコード

diff #

a=gets.to_i;

hour= a / 100 +10;
min=  a % 100 * 6 / 10;


if min < 10 then
  print(hour,":0",min,"\n");

else
print(hour,":",min,"\n");

end
0