結果

問題 No.564 背の順
ユーザー BQZetBQZet
提出日時 2017-11-28 23:52:50
言語 Fortran
(gFortran 14.2.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 32,384 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 13:23:26
合計ジャッジ時間 638 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

program program1
integer,allocatable,dimension(:)::tall
integer::mytall,n,k,rank

read(*,*)mytall,n
allocate(tall(n-1))
read(*,*)tall(:)

rank=count(mytall<tall(:))+1

if(rank==1) then
 write(*,'(i0,A)')rank,'st'
else if(rank==2) then
 write(*,'(i0,A)')rank,'nd'
else if(rank==3) then
 write(*,'(i0,A)')rank,'rd'
else
 write(*,'(i0,A)')rank,'th'
end if

end program program1
0