結果

問題 No.892 タピオカ
ユーザー maimai
提出日時 2019-09-27 21:22:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 88 ms / 1,000 ms
コード長 155 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 11,936 KB
実行使用メモリ 16,096 KB
最終ジャッジ日時 2023-10-25 01:25:17
合計ジャッジ時間 2,314 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
16,096 KB
testcase_01 AC 86 ms
16,096 KB
testcase_02 AC 85 ms
16,096 KB
testcase_03 AC 84 ms
16,096 KB
testcase_04 AC 84 ms
16,096 KB
testcase_05 AC 85 ms
16,096 KB
testcase_06 AC 84 ms
16,096 KB
testcase_07 AC 84 ms
16,096 KB
testcase_08 AC 85 ms
16,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - b
Main.rb:3: warning: assigned but unused variable - d
Main.rb:3: warning: assigned but unused variable - f
Syntax OK

ソースコード

diff #

def lscan; gets.split.map(&:to_i); end

a,b,c,d,e,f = lscan

x = 0
x += a.odd? ? 1 : 0
x += c.odd? ? 1 : 0
x += e.odd? ? 1 : 0

puts x.odd? ? ':-(' : ':-)'
0