結果
問題 | No.892 タピオカ |
ユーザー |
|
提出日時 | 2019-09-27 23:22:05 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 86 ms / 1,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-25 02:01:23 |
合計ジャッジ時間 | 1,417 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
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) ? ':-)' : ':-('