結果

問題 No.341 沈黙の期間
ユーザー jjjj
提出日時 2016-07-28 22:24:20
言語 Fortran
(gFortran 13.2.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 31,616 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-24 10:37:30
合計ジャッジ時間 693 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
5,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
5,376 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 1 ms
5,376 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

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