結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2018-03-14 07:24:35 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 5,000 ms |
| コード長 | 182 bytes |
| コンパイル時間 | 516 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-25 07:34:59 |
| 合計ジャッジ時間 | 3,254 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
x,y,n=gets.split.map{|e| e.to_i}
if x==1 || y==1
if (x==1 && y==2) || (x==2 && y==1)
puts "YES"
else
puts "NO"
end
else
if (x*y)%2==1
puts "NO"
else
puts "YES"
end
end
horiesiniti