結果
問題 |
No.483 マッチ並べ
|
ユーザー |
![]() |
提出日時 | 2017-02-10 23:11:15 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 715 bytes |
コンパイル時間 | 2,423 ms |
コンパイル使用メモリ | 32,384 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-29 11:03:24 |
合計ジャッジ時間 | 3,938 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 29 |
コンパイルメッセージ
Main.f90:29:30: 29 | write(cformat(5:9),'(i0)'),size(array) | 1 Warning: Legacy Extension: Comma before i/o item list at (1)
ソースコード
program main implicit none integer::N,i,j integer,parameter::len=111 type match integer::r01,c01,r11,c11 end type match type(match),allocatable::ml(:) integer::tab(len,len) data tab/12321*0/ read *,N allocate(ml(N)) read *,(ml(i),i=1,N) do i=1,N tab(ml(i)%r01,ml(i)%c01) = 1 + tab(ml(i)%r01,ml(i)%c01) tab(ml(i)%r11,ml(i)%c11) = 1 + tab(ml(i)%r11,ml(i)%c11) end do if(ANY(tab.gt.2)) then print '(a)',"NO" else print '(a)',"YES" end if contains subroutine aprinter(array) integer*8::array(:) character*32::cformat='(i0, (1x,i0))' write(cformat(5:9),'(i0)'),size(array) write(*,cformat) array end subroutine aprinter end program main