結果

問題 No.892 タピオカ
ユーザー Aoshi FujiokaAoshi Fujioka
提出日時 2019-09-27 21:34:28
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 200 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,876 KB
実行使用メモリ 20,928 KB
最終ジャッジ日時 2023-10-25 01:57:11
合計ジャッジ時間 3,440 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
20,552 KB
testcase_01 AC 76 ms
16,204 KB
testcase_02 AC 78 ms
16,204 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'bigdecimal'

inputs = gets.chomp.split.map(&:to_i).map { |i| BigDecimal(i.to_s) }
tapi = inputs[0]**inputs[1] + inputs[2]**inputs[3] + inputs[4]**inputs[5]
puts tapi % 2 == 0 ? ':-)' : ':-('
0