結果
問題 |
No.85 TVザッピング(1)
|
ユーザー |
![]() |
提出日時 | 2016-03-25 03:17:18 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-02 00:41:25 |
合計ジャッジ時間 | 3,888 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 2 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - c Syntax OK
ソースコード
class Yukicoder def initialize n, m, c = gets.chomp.split.map(&:to_i) if [n,m].min == 1 puts "NO" elsif (n*m).even? puts "YES" else puts "NO" end end end Yukicoder.new