結果

問題 No.341 沈黙の期間
ユーザー jj
提出日時 2016-07-28 22:24:20
言語 Fortran
(gFortran 14.2.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 31,488 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 18:15:10
合計ジャッジ時間 866 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 3 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

  character*3,parameter::c='…'
  character*300::S
  integer::i,total=0,prev=0,maxlen
  read *,S

  do i=1, LEN_TRIM(S)
     if(S(i:i+2).eq.c) then
        if(prev+3.eq.i.or.prev.eq.0) then
           total=total+1
           prev = i
           maxlen=MAX(maxlen, total)
        end if
     end if
  end do
  print '(i0)', maxlen
end program
0