結果

問題 No.892 タピオカ
ユーザー Aoshi FujiokaAoshi Fujioka
提出日時 2019-09-27 23:22:05
言語 Ruby
(3.3.0)
結果
AC  
実行時間 89 ms / 1,000 ms
コード長 160 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,944 KB
実行使用メモリ 16,180 KB
最終ジャッジ日時 2023-10-25 06:37:46
合計ジャッジ時間 1,449 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a, _, b, _, c, _ = gets.chomp.split.map(&:to_i)
res = 0
res += 1 if a.even?
res += 1 if b.even?
res += 1 if c.even?
puts (res == 1 || res == 3) ? ':-)' : ':-('
0