結果

問題 No.504 ゲーム大会(ランキング)
ユーザー jjjj
提出日時 2017-04-21 22:30:52
言語 Fortran
(gFortran 13.2.0)
結果
RE  
実行時間 -
コード長 467 bytes
コンパイル時間 1,303 ms
コンパイル使用メモリ 26,940 KB
実行使用メモリ 5,124 KB
最終ジャッジ日時 2023-09-27 11:19:17
合計ジャッジ時間 3,042 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 RE -
testcase_07 AC 55 ms
4,376 KB
testcase_08 AC 54 ms
4,376 KB
testcase_09 AC 54 ms
4,376 KB
testcase_10 AC 53 ms
4,380 KB
testcase_11 AC 55 ms
4,380 KB
testcase_12 AC 49 ms
4,380 KB
testcase_13 AC 39 ms
4,376 KB
testcase_14 AC 55 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.f90:21:30:

     write(cformat(5:9),'(i0)'),size(array)-1
                              1
Warning: Legacy Extension: Comma before i/o item list at (1)

ソースコード

diff #

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
0