結果

問題 No.2371 最大の試練それは起床
ユーザー simansiman
提出日時 2023-07-07 22:02:38
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 199 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 15,412 KB
最終ジャッジ日時 2023-09-28 23:18:01
合計ジャッジ時間 3,449 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 79 ms
15,220 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 79 ms
15,144 KB
testcase_06 AC 79 ms
15,020 KB
testcase_07 RE -
testcase_08 AC 80 ms
15,172 KB
testcase_09 RE -
testcase_10 AC 79 ms
15,072 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 79 ms
15,272 KB
testcase_14 RE -
testcase_15 AC 81 ms
15,032 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 78 ms
14,968 KB
testcase_19 AC 79 ms
15,072 KB
testcase_20 RE -
testcase_21 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

H, M = gets.split.map(&:to_i)

time = 60 * H + M + 0.5
start_at = 60 * 7 + 0.5
end_at = 60 * 8 + 30

if time <= start_at
  raise
elsif start_at <= time && time <= end_at
  raise
else
  puts 'No'
end
0