結果
問題 |
No.290 1010
|
ユーザー |
![]() |
提出日時 | 2016-09-12 22:36:12 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 485 bytes |
コンパイル時間 | 513 ms |
コンパイル使用メモリ | 30,720 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 04:08:50 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
program main implicit none integer::N character*3::S read *,N if(N.ge.4) then print '(a)',"YES" else if(N.eq.1) then print '(a)',"NO" else if(N.eq.2) then read *,S if(S(1:1).eq.S(2:2)) then print '(a)',"YES" else print '(a)',"NO" end if else if(N.eq.3) then read *,S if(S(1:1).eq.S(3:3).and.S(1:1).ne.S(2:2)) then print '(a)',"NO" else print '(a)',"YES" end if end if end program main