結果

問題 No.35 タイパー高橋
ユーザー jjjj
提出日時 2016-07-30 16:40:30
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 32,000 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-24 13:11:07
合計ジャッジ時間 636 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

  TYPE game
     integer::time
     character::str*100
  end type game
  type(game),allocatable::games(:)
  integer::miss = 0,total = 0
  read *, N
  allocate(games(N))
  read *, games

  do i=1,N
     total = total + LEN_TRIM(games(i)%str)
     miss = miss + MAX((LEN_TRIM(games(i)%str)-games(i)%time*12/1000),0)
  end do
  print '(i0," ",i0)', total-miss, miss
end program
0