結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
jj
|
| 提出日時 | 2017-04-21 22:30:52 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 467 bytes |
| コンパイル時間 | 1,893 ms |
| コンパイル使用メモリ | 32,256 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 05:26:06 |
| 合計ジャッジ時間 | 3,046 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 RE * 1 |
コンパイルメッセージ
Main.f90:21:30:
21 | write(cformat(5:9),'(i0)'),size(array)-1
| 1
Warning: Legacy Extension: Comma before i/o item list at (1)
ソースコード
program main
implicit none
integer::N,k,i
integer,allocatable::a(:)
read *,N
allocate(a(N))
read *,a
k = 1
do i=2,N
if(a(1).lt.a(i)) then
k = k + 1
end if
a(i) = k
end do
a(1) = 1
call aprinter(a)
contains
subroutine aprinter(array)
integer*4::array(:)
character*32::cformat='(i0, (/,i0),i0)'
write(cformat(5:9),'(i0)'),size(array)-1
write(*,cformat) array
end subroutine aprinter
end program main
jj