結果
| 問題 | 
                            No.2862 NOT FOUND 404
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-09-02 15:21:30 | 
| 言語 | Fortran  (gFortran 14.2.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 397 bytes | 
| コンパイル時間 | 1,532 ms | 
| コンパイル使用メモリ | 30,848 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-02 15:21:33 | 
| 合計ジャッジ時間 | 2,023 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
program hi
  use, intrinsic :: iso_fortran_env
  implicit none
  integer(int32) :: n
  character(len=:), allocatable :: s
  integer(int32) :: i
  read(input_unit, *) n
  allocate(character(len=n) :: s)
  read(input_unit, *) s
  do i = 1, n - 2
    if (s(i:i+2) == "404") then
      write(output_unit, '(a)') "Found"
      stop
    end if
  end do
  write(output_unit, '(a)') "NotFound"
end program