結果
| 問題 | No.85 TVザッピング(1) |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2018-03-14 07:24:35 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 5,000 ms |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-05-19 19:18:47 |
| 合計ジャッジ時間 | 3,392 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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