結果

問題 No.512 魔法少女の追いかけっこ
ユーザー Takuya NoguchiTakuya Noguchi
提出日時 2018-03-20 21:35:10
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 159 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 15,408 KB
最終ジャッジ日時 2023-09-09 14:00:58
合計ジャッジ時間 7,123 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,228 KB
testcase_01 AC 88 ms
15,000 KB
testcase_02 AC 84 ms
15,048 KB
testcase_03 AC 82 ms
15,292 KB
testcase_04 AC 85 ms
15,096 KB
testcase_05 AC 85 ms
15,292 KB
testcase_06 AC 84 ms
15,004 KB
testcase_07 WA -
testcase_08 AC 86 ms
15,104 KB
testcase_09 WA -
testcase_10 AC 83 ms
15,156 KB
testcase_11 AC 84 ms
15,224 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 86 ms
15,068 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 88 ms
15,072 KB
testcase_19 AC 88 ms
15,208 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 84 ms
15,252 KB
testcase_23 AC 87 ms
15,160 KB
testcase_24 AC 84 ms
15,260 KB
testcase_25 AC 83 ms
15,148 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 87 ms
15,208 KB
testcase_32 AC 84 ms
15,152 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 84 ms
15,020 KB
testcase_36 WA -
testcase_37 AC 83 ms
15,072 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 86 ms
15,096 KB
testcase_41 AC 84 ms
15,152 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 82 ms
15,344 KB
testcase_48 WA -
testcase_49 AC 83 ms
15,264 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 84 ms
15,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

X, Y = gets.split.map(&:to_i)
N = gets.to_i
A = gets.split.map(&:to_i)

x_s = X * 1000 / 60 / 60
y_s = Y * 1000 / 60 / 60

puts (y_s - x_s) <= N ? 'YES' : 'NO'
0