結果

問題 No.85 TVザッピング(1)
ユーザー ciel
提出日時 2014-12-04 23:29:27
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 112 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-06-11 15:21:54
合計ジャッジ時間 3,143 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
ruby: warning: shebang line ending with \r may cause problems
Main.rb:2: warning: assigned but unused variable - c
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
n,m,c=gets.split.map(&:to_i)
if n==1||m==1
	puts :YES
else
	puts n*m%2==1 ? :NO : :YES
end
0