結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
jj
|
| 提出日時 | 2016-09-22 21:41:28 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 318 bytes |
| コンパイル時間 | 1,033 ms |
| コンパイル使用メモリ | 31,104 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 18:02:14 |
| 合計ジャッジ時間 | 1,717 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
program main
implicit none
integer::N,M,C,NM
read *,N,M,C
NM = N*M
if(N.eq.1.or.M.eq.1) then
if(N.eq.2.or.M.eq.2) then
print '(a)',"YES"
else
print '(a)',"NO"
end if
else if(MOD(N*M,2).eq.0) then
print '(a)',"YES"
else
print '(a)',"NO"
end if
end program main
jj