結果

問題 No.2460 #強調#
ユーザー osada-yumosada-yum
提出日時 2023-10-02 21:18:00
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 503 bytes
コンパイル時間 1,492 ms
コンパイル使用メモリ 25,664 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-10-02 21:18:11
合計ジャッジ時間 2,563 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

program yukicoder_2460
  use, intrinsic :: iso_fortran_env
  implicit none
  integer(int32), parameter :: max_len = 100
  character(len=max_len) :: s
  logical :: is_in_sharp
  integer(int32) :: i
  read(input_unit, *) s
  is_in_sharp = .false.
  do i = 1, len_trim(s)
     if (is_in_sharp) then
        if (s(i:i) == "#") stop
        write(output_unit, '(a)', advance = "no") s(i:i)
     end if
     if (s(i:i) == "#") then
        is_in_sharp = .true.
     end if
  end do
end program yukicoder_2460
0