結果

問題 No.892 タピオカ
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-07 13:15:58
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 96 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,396 KB
実行使用メモリ 15,248 KB
最終ジャッジ日時 2023-09-29 20:33:09
合計ジャッジ時間 1,445 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,072 KB
testcase_01 AC 83 ms
15,224 KB
testcase_02 AC 80 ms
15,100 KB
testcase_03 AC 77 ms
15,084 KB
testcase_04 AC 77 ms
15,248 KB
testcase_05 AC 77 ms
14,992 KB
testcase_06 AC 77 ms
15,248 KB
testcase_07 AC 76 ms
15,084 KB
testcase_08 AC 77 ms
15,072 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - b
Main.rb:1: warning: assigned but unused variable - d
Main.rb:1: warning: assigned but unused variable - f
Syntax OK

ソースコード

diff #

a,b,c,d,e,f = gets.split.map(&:to_i)
puts ((a % 2) + (c % 2) + (e % 2)) % 2 == 0 ? ":-)" : ":-("
0