結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-27 21:34:28 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 200 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 19,872 KB |
| 最終ジャッジ日時 | 2024-09-24 20:53:55 |
| 合計ジャッジ時間 | 3,282 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
Syntax OK
ソースコード
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 ? ':-)' : ':-('