結果
| 問題 | No.892 タピオカ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-27 21:22:11 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 1,000 ms |
| コード長 | 155 bytes |
| 記録 | |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-04-11 23:38:55 |
| 合計ジャッジ時間 | 1,533 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - d Main.rb:3: warning: assigned but unused variable - f Main.rb:3: warning: assigned but unused variable - b 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? ? ':-(' : ':-)'