結果
問題 | No.85 TVザッピング(1) |
ユーザー |
![]() |
提出日時 | 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 mainimplicit noneinteger::N,M,C,NMread *,N,M,CNM = N*Mif(N.eq.1.or.M.eq.1) thenif(N.eq.2.or.M.eq.2) thenprint '(a)',"YES"elseprint '(a)',"NO"end ifelse if(MOD(N*M,2).eq.0) thenprint '(a)',"YES"elseprint '(a)',"NO"end ifend program main