結果
問題 | No.892 タピオカ |
ユーザー |
|
提出日時 | 2019-09-27 21:22:11 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 83 ms / 1,000 ms |
コード長 | 155 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-24 20:30:47 |
合計ジャッジ時間 | 1,952 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
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
ソースコード
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? ? ':-(' : ':-)'